Blog Archives

How to make SVN work on R-Forge and your local driver?

May 2, 2008
By

R has a new platform-R-Forge-that enables developers and users to communicate with each other. More importantly, it is a version control platform that enables different developers to keep track on what others have been working on. So that ideally, if...

Read more »

How to make SVN work on R-Forge and your local driver?

May 2, 2008
By

R has a new platform-R-Forge-that enables developers and users to communicate with each other. More importantly, it is a version control platform that enables different developers to keep track on what others have been working on. So that ideally, if...

Read more »

speed issue in R computing: apply() vs a loop

April 23, 2008
By

In R, apply() is NOT faster than a loop!!I don't know where I pick up this perception about apply() being faster than a loop in R. For a long time, I always think that apply() runs a function (for example, mean()) on a data structure (row or column) i...

Read more »

speed issue in R computing: apply() vs a loop

April 23, 2008
By

In R, apply() is NOT faster than a loop!!I don't know where I pick up this perception about apply() being faster than a loop in R. For a long time, I always think that apply() runs a function (for example, mean()) on a data structure (row or column) i...

Read more »

An Example for Just Another Gibbs Sampler (JAGS)

March 4, 2008
By

JAGS is a cross platform BUGS. Because it runs in a command mode, it is somewhat faster than other BUGS. However, I found it is a bit tacky to use it as a Windows/PC user. I found the manual very useful but some of the language is a bit uncommon to regular users. For instance, compile [,nthins( < n...

Read more »

An Example for Just Another Gibbs Sampler (JAGS)

March 4, 2008
By

JAGS is a cross platform BUGS. Because it runs in a command mode, it is somewhat faster than other BUGS. However, I found it is a bit tacky to use it as a Windows/PC user. I found the manual very useful but some of the language is a bit uncommon to regular users. For instance, compile [,nthins( < n...

Read more »

Ordered logistic model with varying intercepts (random effects)

March 2, 2008
By

I coauthor a paper with Ozan, a friend who I know when I was TAing Bayesian Methods in ICPSR. The paper tries to see if the 9/11 has any effect on American's attitudes on Muslim. We have dataset from different years: 2 from pre-9/11 periods and 2 from ...

Read more »

Ordered logistic model with varying intercepts (random effects)

March 2, 2008
By

I coauthor a paper with Ozan, a friend who I know when I was TAing Bayesian Methods in ICPSR. The paper tries to see if the 9/11 has any effect on American's attitudes on Muslim. We have dataset from different years: 2 from pre-9/11 periods and 2 from ...

Read more »

A wraper function to convert coda files into a BUGS object

February 11, 2008
By

I used to fit Bayesian model using WinBUGS via R a lot. But now I am more and more prone to run models on OpenBUGS directly. I have document the reason why I like OpenBUGS and wrote a auto OpenBUGS function here. In short, I like to be able to know wha...

Read more »

A wraper function to convert coda files into a BUGS object

February 11, 2008
By

I used to fit Bayesian model using WinBUGS via R a lot. But now I am more and more prone to run models on OpenBUGS directly. I have document the reason why I like OpenBUGS and wrote a auto OpenBUGS function here. In short, I like to be able to know wha...

Read more »