Blog Archives

R – not the epic fail we thought

April 16, 2010
By

I usually like AnnMaria's witty insight. I can relate to a lot of what she is saying. After all SAS and family life are large parts of my life, too. But you can imagine the reaction she provoked in saying the following:I know that R is free and I am ac...

Read more »

My implementation of Berry and Berry’s hierarchical Bayes algorithm for adverse events

November 20, 2009
By

I've been working on this for quite some time (see here for a little background), so I'm pleased that it looks close to done at least as far as the core algorithm. It uses global variables for now, and I'm sure there are a couple of other bugs lurking, but here it is, after the jump.const.sqrt2pi <-...

Read more »

Working on a drug safety project

November 20, 2009
By

In order to move some of my personal interests along, I have been trying to implement the methodology found in Berry and Berry's article Accounting for Multiplicities in Assessing Drug Safety. This methodology uses the MedDRA hierarchy to improve the p...

Read more »

Causal inference and biostatistics

July 11, 2009
By

I've been following the discussion on causal inference over at Gelman's blog with quite a bit of interest. Of course, this is in response to Judea Pearl's latest book on causal inference, which differs quite a bit from the theory that had been forwarde...

Read more »

Another solution to the R to Word table problem

October 17, 2008
By

Last time I used an HTML solution. This time, I create an RTF file:# function: my.rtf.table# purpose: convert a matrix, data.frame, or array into a rtf table# output: text for RTF, possibly written to a file# inputs:# tab - a table, dataframe, or array (needs rownames and colnames)# outfile - name of file (or console if NULL,...

Read more »

Using R in consulting: playing nice with Microsoft Word

October 17, 2008
By

As I use R more in consulting, I'm finding the need to make the quick transition from R to Microsoft products (usually Word) more serious. (I'm using a Windows platform, but I'm sure the challenges on the Mac would be similar.) I simply don't have time to do the text manipulations necessary to convert text to Word tables, for...

Read more »

More stats sites

August 20, 2008
By

Jim Albert has a blog based on his book Bayesian Computation in R. Unfortunately, it seems they haven't been updating it too much recently but it looks like what's there is pretty good.

Read more »

The hammer, or the sledgehammer? A small study in simulation

January 29, 2008
By

RKN over at Epidemiology blog had a small problem he solved using simulation:I have been interested in the following question: if there are, let's say, 5 genes involved in the liability of fx risk, and each gene has two alleles with one of them conferr...

Read more »

Review of Jim Albert’s Bayesian Computation with R

August 14, 2007
By

When I first read Andrew Gelman's quick off-the-cuff review of the book Bayesian Computation with R, I thought it was a bit harsh. So did Gelman.I thumbed through the book at the joint statistical meetings, and decided to buy it along with Bayesian Cor...

Read more »

SAS weirdness

March 21, 2007
By

From time to time, I'll complain about the weirdness of SAS, the statistical analysis program of choice for much of the pharmaceutical industry. This post is one such complaint.Why, oh why, does SAS not directly give us the asymptotic variance of the M...

Read more »