Blog Archives

compiler and runiregGibbs (bayesm)

April 13, 2011
By

So everyone's excited about the new R 2.13 release because of the compiler package.Apparently it is easy to get a 3x speed increase by simply compiling a function.Doing a lot of the MCMC stuff, I am particularly excited about speed in R. I just compile...

Read more »

Disable auto-update from R (Windows)

January 21, 2011
By

There are two major threats to complex MCMC estimations:Wrong energy settings (hibernate after 2 hours of inactivity)Automatic Updates (install updates at 3 a.m.)I thought about the latter threat. At times, you may hand some R code to other co-workers,...

Read more »

Disable auto-update from R (Windows)

January 21, 2011
By

There are two major threats to complex MCMC estimations:Wrong energy settings (hibernate after 2 hours of inactivity)Automatic Updates (install updates at 3 a.m.)I thought about the latter threat. At times, you may hand some R code to other co-workers,...

Read more »

table() in R

January 11, 2011
By

The table function in R is very useful, especially when working with survey data. Often you may have Likert scales for levels of agreement or satisfaction. table() quickly gives the distribution of answers, which can then be used for (bar)plots.However...

Read more »

table() in R

January 11, 2011
By

The table function in R is very useful, especially when working with survey data. Often you may have Likert scales for levels of agreement or satisfaction. table() quickly gives the distribution of answers, which can then be used for (bar)plots.However...

Read more »

User Account Control (Windows)

January 11, 2011
By

When using Windows Vista / 7, Windows' User Account Control can be annoying. When is R going to be Windows 7 ready, asking for elevated priviliges only when needed? I guess the problem lies in the structure of packages.Running Rgui.exe "as Administrato...

Read more »

User Account Control (Windows)

January 11, 2011
By

When using Windows Vista / 7, Windows' User Account Control can be annoying. When is R going to be Windows 7 ready, asking for elevated priviliges only when needed? I guess the problem lies in the structure of packages.Running Rgui.exe "as Administrato...

Read more »

Install R Packages wherever needed

January 10, 2011
By

I frequently occupy computers everywhere with extensive MCMC tasks. Installing R doesn't take long, but it can be very annoying if you manually have to install dozens of R packages before your code is able to run. Well, now I use the following command ...

Read more »

Install R Packages wherever needed

January 10, 2011
By

I frequently occupy computers everywhere with extensive MCMC tasks. Installing R doesn't take long, but it can be very annoying if you manually have to install dozens of R packages before your code is able to run. Well, now I use the following command ...

Read more »

General-purpose MCMC draw saver for R

January 10, 2011
By

If you do MCMC with R, you probably know how nasty "bookkeeping" of draws can be. So I quickly coded up a small function which does everything for you. Every parameter has to begin with "mcmc_" or another to-be-defined string, then just run mcmcsave...

Read more »