Dear Sir/Madam Hi. I am a general paediatrician, and I have read *some* chapters of the following books(1-3). I think SPSS lacks some features that may be important in data analysis (for example: interval of correlation coefficient in bivariate normal distribution, PRESS, and MSPR in cross-validation). I am thinking about changing SPSS to R: 1. SPSS is very expensive for me to update. 2. My colleagues use SPSS, but I think data can be exchanged between SPSS, and R, is this true? 3. I have not worked with R so much yet. Would you mind do me a favour about this issue, please? Kind regards Mehrshad 1. Norusis MJ. SPSS 16.0 guide to data analysis. Upper Saddle River: Prentice Hall Inc.; 2008. 2. Norusis MJ. SPSS 16.0 statistical procedures companion. Upper Saddle River: Prentice Hall Inc.; 2008. 3. Kutner M, Nachtsheim C, Neter J, Li W. Applied linear statistical models. 5th ed. New York: McGraw-Hill; 2005. [[alternative HTML version deleted]]
Hans Ekbrand
2011-Aug-09 12:22 UTC
[R] importing spss-files [ was: "Re: need your consult"]
On Tue, Aug 09, 2011 at 02:28:22AM -0700, Mehrshad Koleini wrote:> Dear Sir/Madam > > > Hi. I am a general paediatrician, and I have read *some* chapters of the > following books(1-3). I think SPSS lacks some features that may be important > in data analysis (for example: interval of correlation coefficient in > bivariate normal distribution, PRESS, and MSPR in cross-validation). I am > thinking about changing SPSS to R: > > > 1. SPSS is very expensive for me to update. > 2. My colleagues use SPSS, but I think data can be exchanged between > SPSS, and R, is this true?Yes, but the data must be converted, which it not an entirely seamless process, there might be quirks to be handled manually. To import data from an SPSS file to R, read http://cran.r-project.org/doc/manuals/R-data.html and http://cran.r-project.org/web/packages/foreign/foreign.pdf Basically, it can be as simple as library(foreign) foo <- read.spss(file = "data_set.sav") now, your data is in object "foo", which can be inspected with the function str() str(foo) -- Hans Ekbrand -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110809/fd7f2a9f/attachment.bin>
Maybe Matching Threads
- coef does not work for my ASReml model
- saddle points in optim
- NewsForge reviews John Terpstra's book: "Samba-3 by Example", 2nd Ed.
- Models for Discrete Choice in R
- new package clubSandwich: Cluster-Robust (Sandwich) Variance Estimators with Small-Sample Corrections