Useful tools in (almost) every day's statistician's lifeWelcome to my Bayesian statistics homepage. I am a programming statistician and I have been working with Dr Lawrence Joseph in a Bayesian framework since 1994. To fill the miscellaneous tasks I have to do in my regular work, I mainly use SAS, R, WinBUGS and Perl. Over the years, I have developed several tools, programs and functions to make my life easier: I thought I would share some of them with you, as they are likely to be useful to a Bayesian audience.
A SAS macro to save multi-dimensional structures to WinBUGS list files.
A program to facilitate the writing of WinBUGS scripts.
A program to facilitate the running of WinBUGS scripts.
A program to summarize the node statistics for each node in a series of WinBUGS log text files.
An R function to read node statistics from a WinBUGS text output file.
A function to compute Aickin Alpha's agreement coefficient.
A function to process bic.glm and bic.surv outputs.
A function to bind two matrices diagonally.
A function to draw a forest plot.
A program to optimize R simulations by using multiple processors simultaneously (parallel computing).
A function to read node statistics from a WinBUGS text output file.
A function to compute Beta distribution parameters fitting specified quantiles and cumulative probabilities.
A function to compute Gamma distribution parameters fitting specified quantiles and cumulative probabilities.
A macro to compute Aickin Alpha's agreement coefficient.
A macro to compute Bayesian Information Criterion (BIC) in Ordinal Logistic Regression Models.
A macro to compute Bayesian Information Criterion (BIC) in Survival Models when one or more of the independent variables is (are) time-dependent.
A macro to compute dates variables descriptive statistics.
A macro to save multi-dimensional structures to WinBUGS list files.
A macro to compute the arithmetic mean of several variables in proc sql.
A macro to transpose multiple variables in a SAS data set within a single macro call.
A macro to compute confidence interval(s) for difference between independent proportions.
A macro to plot 3-way Venn diagrams.
A program for extracting a field (or column) from a text file.
A Perl program to repeat text (or code) — with slight modifications — a large number of times.
Most of the WinBUGS tools presented on this site and most of the Bayesian software Lawrence Joseph and I have developed are Perl-driven. Perl is a powerful and yet easy-to-learn programming language that can prove very useful to statisticians.
Indeed, aside from its use in the (relatively) elaborated programs cited above, I use it almost daily for
Read my invitation to Perl, and you be the judge!