Monthly Archives: February 2009

Princeton Graduate Student Housing

February 8, 2009
By
Princeton Graduate Student Housing

For any Princeton graduate students who are interested, here’s the success rate for graduate students applying for school housing. These charts were built using the data from the 2008-2009 Room Draw Statistics pamphlet provided by the Division of Hou...

Read more »

Our new R package: R2jags

February 8, 2009
By

I have got emails occasionally from JAGS users, asking about our new R package: R2jags. Basically, R2jags runs JAGS via R and makes postanalysis easier to be done in R. Taking advantage of the functions...

Read more »

Our new R package: R2jags

February 8, 2009
By

I have got emails occasionally from JAGS users, asking about our new R package: R2jags. Basically, R2jags runs JAGS via R and makes postanalysis easier to be done in R. Taking advantage of the functions...

Read more »

Baby Got Stats!

February 8, 2009
By

I was completely tickled last year with the oh so amusing Statz Rappers. It kept me and my nerdy stats friends laughing for days. Rapping. Stats. The Internet. Good times. But little did I know that rapping about statistics was really just hitting its stride on youtube. This is Why We Plot began my trip

Read more »

ave

February 8, 2009
By

I discovered a new, very useful, R function yesterday: ave. This is what it does: “Subsets of ‘x‘ are averaged, where each subset consist of those observations with the same factor levels.” But interestingly, you can use any function other than average. The output of that function is set against each observation. I wanted

Read more »

R: Calculating all possible linear regression models for a given set of predictors

February 6, 2009
By
R: Calculating all possible linear regression models for a given set of predictors

Although the graphic at the left might not seem a 100% appropriate, it gives a hint to what I am about to do. I want to calculate all possible linear regression models with one dependent and several independent variables. I do not want to address bias and fitting issues or the question if this

Read more »

Analysis of Variance (ANOVA) using R

February 5, 2009
By
Analysis of Variance (ANOVA) using R

I found some useful websites showing examples of how to use R for various sorts of ANOVA (between, within, mixed designs, etc): Using R for Psychological Research Quick-R for SAS/SPSS/Stata users enjoy

Read more »

R-Sessions 31: Combining lmer output in a single table (UPDATED)

February 5, 2009
By

There are various ways of getting your output from R to your publication draft. Most of them are highly efficient, but unfortunately I couldn’t find a function that combines the output from several (lmer) models and presents it in a single table....

Read more »

If I Had a Text File, I’d Hack Regexes in the Morning

February 4, 2009
By
If I Had a Text File, I’d Hack Regexes in the Morning

Yesterday the topic of academic citation counts came up, so I decided that I should write up some tools for exploring cite counts. The first thing I did was to build a cheap screenscraper in Ruby for pulling citation count information from Google schol...

Read more »

Correct Datetime / POSIXct behaviour for R and kdb+

February 3, 2009
By

We have started to look into kdb+ as a possible high-performance column-store backend. Kx offers free trials -- and so I have played with this for a day or two, both the general system, data loads and dumps and in particular with the interface to R, Based on the few files (one C source with interface code, one R file to access the...

Read more »