Monthly Archives: September 2010

Haven’t found any great solutions to the missing data issue in SPSS files…

I came along this forum (http://r.789695.n4.nabble.com/R-for-Windows-GUI-closes-when-I-try-to-read-spss-td862748.html) and it comes to a solution we considered which was exporting data to a .csv and then reading it into R. But that isn’t helpful if you have a lot of variables to recode … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

R cheat sheet

Josh sent this link (http://www.personality-project.org/R/r.commands.html) along which contains a cheat sheet of common R commands. I like it and if anyone else has found some, send them along. Paolo’s blog (“One R Tip A Day”) might have something like this, … Continue reading

Posted in Getting Started | Tagged , | Leave a comment

dchisq and dnorm Plots

I tried this for plotting out some chi-square distributions with various df and it seemed to work out: s<-seq(0,25,.01) plot(s,dchisq(s,2),type=”l”,lwd=2,col=”dodgerblue4″) lines(s,dchisq(s,5),type=”l”,lwd=2,col=”green1″) lines(s,dchisq(s,10),type=”l”,lwd=2,col=”orange1″) This should look something like this: Here’s something similar for a normal distribution (notice that I use slightly … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

The R Journal

I just found this (http://journal.r-project.org/) and found some great packages in the (few) issues that the group has published. It’s definitely worth checking out.

Posted in Uncategorized | Tagged , , | 2 Comments

Simple Simulation for Helping to Learn R

I have found it useful to create quick and simple vectors and data frames within R since I know that much of the real world data I might be working with may have certain peculiarities that sometimes impede the learning … Continue reading

Posted in Uncategorized | Leave a comment

edit() and fix()

So I’ve discovered that fix() command has been more helpful to me when I want to edit a data frame and potentially multiple vectors while edit() looks like it is best used with single vectors.  So far I haven’t found … Continue reading

Posted in Uncategorized | Leave a comment

Getting SPSS and Stata Data Files Into R

I use SPSS and Stata quite a bit and want to know how to get .sav and .dta files into R. Getting generic data files into R (e.g. .csv & .txt) are fairly simple and handled with R’s base library. … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments