Friday, October 30, 2009

Inkscape is a handy tool

Inkscape ( is a free software package for graphics. It reads a large number of graphics formats including eps and pdf, and allows one to modify them and output to a large number of different graphics formats.

Thursday, October 29, 2009

Simple R figures

This comes very handy.

Wednesday, October 28, 2009

Another bayesian book

Bayesian Methods for Data Analysis, Third Edition:

Tuesday, October 27, 2009

Using the "foreign" package for data conversion

I was in a rush to convert a SPSS data into Stata format. Somehow my Stattransfer v.8 for Linux was lost and I did not want pause my work and go back to Windows just to get this one file converted. So fire Emacs+ESS+R, load the "foreign" package, did the file conversion, and it worked!

Literate programming, etc.

Monday, October 26, 2009

Ecological Models and Data in R

Seems to be a good book.

Sunday, October 25, 2009

Skewed distribution coded using WBdev

I have not found similar functions in JAGS

An easy way to get additional distribution in BUGS and JAGS

Also, it seems that the JAGS development is moving right along:

Skewed multivariate distribution

This research has done some research on this topic:


Some of the statements are no longer true (e.g. ADMB being not free), but the overall arguments seem fair.

Work without X

Friday, October 23, 2009

Scivews-K got updated

The problem is, I cannot get it to work, on either Windows or Linux.

Some more Chinese materials...

A Chinese article...

Thursday, October 22, 2009

Here are some Bugs code for joint modeling

Statistical computing matters

Wednesday, October 21, 2009

InferenceR looks interesting

I obtained a free academic copy of the InferenceR, which is a R IDE for Windows. I has several interesting features such as a visual debugger. It is definitely worth some further exploration. Of course, the problem (and the only problem for now) is that it is Windows-only, cannot run it on Linux.

Lots of maps using R

Very helpful!

Tuesday, October 20, 2009

Editing while running R within Emacs

Simply press "Ctrl + g" will return the control back to the user.

Running JAGS via R2jags

I finally figure out how to run WinBUGS examples in JAGS via R2jags. JAGS is preferred over WinBUGS for its cross-platform compatibility and performance (it was written in C++).

Friday, October 16, 2009

Syntax for

" -otld -c file.Rnw" will compile the Rnw file, create a PDF file, and open it automatically.

The optimal way to do sweave

The optimal way to do sweave may be to have a master file in LaTeX, and a separate Rnw file contains all the computations, figures, and tables. That way, it is easy to compile the LaTeX as the writing goes on without the hassle of carrying out the computations (especially when some of them are heavy) every time.

When the computations are finished, one can simply include the generated LaTeX output in the master LaTeX file to get the complete manuscript. Here are the files:
  1. master.tex: the master LaTeX file that contains text materials of a paper;
  2. tables.Rnw: the sweave file for creating all the tables;
  3. tables.tex: the LaTeX output file that can be included in the master file;
  4. figure.Rnw: the sweave file for creating all the figures;
  5. figure.tex: the LaTeX output file that can be included in the master file;
  6. driver.tex: a simple LaTeX driver to view the tables and figures before including them into the master LaTeX file.

Thursday, October 08, 2009

Stata teaching demo

This is where all the Stata teaching demos:

Maple 13

I just realized that CUNY has site license of Maple 13. Good choice, CUNY!