Friday, October 16, 2009

Syntax for sweave.sh

"Sweave.sh -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: http://www.ats.ucla.edu/stat/stata/ado/teach/

Maple 13

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

Sunday, September 20, 2009

Childhood obesity

It has been fun to work on the childhood obesity stuff again! We'll see how the grant goes.

Thursday, September 17, 2009

Models for Discrete Longitudinal Data

Free e-book: http://www.springerlink.com/content/w2016h/?sortorder=asc&p_o=0

Another bayesian book

Spiegelhalter, D., Best, N., Lunn, D. and Thomas, A. (2009) Bayesian Analysis using the BUGS language: A Practical Introduction, Chapman and Hall

Also, the online materials for "Bayesian Modeling Using WinBUGS" books keeps expanding: http://stat-athens.aueb.gr/~jbn/winbugs_book/

Sunday, September 06, 2009

Reading and writing data using Python

http://www.ibm.com/developerworks/opensource/library/os-python8/?ca=dgr-lnxw16DicoverPythonP8

Saturday, September 05, 2009

Why do we focus on individuals?

Here is the answer offered by Kenny et al. (2006):

"...First, no doubt much of the attention given to the individual is cultural. The United States is the most individualistic country in the world (Smith & Bond, 1994), and because the United States has dominated social and behavioral research, the prevalence of research concerning individuals is hardly surprising.

A second factor that has contributed to this individualistic orientation is the reliance on standard statistical methods such as analysis of variance (ANOVA) and multiple regression...

The third reason is that psychologists have dominated research in the social and behavioral sciences ..."

Very interesting book:

Kenny, D. A., D. A. Kashy, and W. L. Cook. 2006. Dyadic data analysis. New York, NY: The Guilford Press.

Counter