similar to: Import SPSS file to R

Displaying 20 results from an estimated 10000 matches similar to: "Import SPSS file to R"

2009 Oct 10
7
SPSS long variable names
Hello guys I am new to this list and for R too. I am wondering if there is a patch for the SPSS reading code on the foreign package, in order to be able to read long variable names. Right now read.spss() just trunc the names to 8 characters. Or if someone could help me on other way: I have to process everyday a lot of SPSS Syntax Files and Dat files that come from one system that can only export
2006 Jan 11
3
SPSS and R ? do they like each other?
... and is there also such a nice tool (like spss.get) for exporting data frames to SPSS? write.table does not keep the data frame labels - neither did the other exporting tools that I found. Thanks! Michael [[alternative HTML version deleted]]
2008 Jul 29
1
Problem reading a particular file with read.spss()
Hi All: I have a seemingly typical SPSS data file with 219 rows and 486 variables. When I attempt to read this file into R with read.spss() in the foreign package, I consistently get a "crash". This is the sequence of events: > library(foreign) > sessionInfo() R version 2.7.1 Patched (2008-07-24 r46120) i386-pc-mingw32 locale: LC_COLLATE=English_United
2004 Mar 12
6
read.spss
Hi, I would like to read a spss file in R. When i type read.spss("...") Comes the error: couldn't find function "read.spss" What shall i do? Margarida [[alternative HTML version deleted]]
2004 Mar 12
6
spss
hi, i can?t download a file in access. when i type: > library(foreign) > read.spss("H:\Desktop\bd1\experiencia1") comes the error: Error in read.spss("H:Desktop\bd1experiencia1") : unable to open file do you know what is the problem? can you help me? margarida,porto,portugal
2009 Mar 11
2
lsmeans in R
I need help with calculating lsmeans (adjusted means) of different terms in a linear model including the main effect and the interaction effect terms. I use lm to run the linear models...I previously noted from literature that that "effects" package can be used to generate lsmeans. But I tried to use it but could not figure out which option to use to get means. If anyone can give an
2003 Dec 11
2
read.spss question warning compression bias
Hello again I have a file from SPSS in .sav format. when I run library(foreign) cvar<-as.data.frame(read.spss("c:\\NDRI\\cvar\\data\\cvar2rev3.sav")) I get a warning Warning message: c:\NDRI\cvar\data\cvar2rev3.sav: Compression bias (0) is not the usual value of 100. The data appear to be OK, but I am concerned. (I tried searching the archives and the documenation for data
2009 Jul 01
2
Difficulty in calculating MLE through NLM
Hi R-friends, Attached is the SAS XPORT file that I have imported into R using following code library(foreign) mydata<-read.xport("C:\\ctf.xpt") print(mydata) I am trying to maximize logL in order to find Maximum Likelihood Estimate (MLE) of 5 parameters (alpha1, beta1, alpha2, beta2, p) using NLM function in R as follows. # Defining Log likelihood - In the function it is noted as
2010 May 31
1
help with importing SPSS file
Hi, I have a SPSS .sav file which contains a database of multiple tables, and each table contains multiple variables. I used read.spss function to load the data A<-read.spss("datafile.sav",to.data.frame = TRUE) I see variable names, but do not know how to retrieve the table (or all the variables corresponding to a table). -sophia
2010 May 18
1
Getting dates in an SPSS file in right format.
Dear all, I am trying to read an SPSS file into a data frame in R using method read.spss(), sample <- read.spss(file.name,to.data.frame=TRUE) But dates in the data.frame ''sample'' are coming as integers and not in the actual date format given in the SPSS file. Appreciate if anyone can help me to solve this problem. Kind Regards, Praveen Surendran 2G, Complex
2008 Oct 11
2
R vs SPSS contrasts
Hi Folks, I'm comparing some output from R with output from SPSS. The coefficients of the independent variables (which are all factors, each at 2 levels) are identical. However, R's Intercept (using default contr.treatment) differs from SPSS's 'constant'. It seems that the contrasts were set in SPSS using /CONTRAST (varname)=Simple(1) I can get R's Intercept to match
2007 May 27
1
Problem while working with SPSS data
Dear all R users, I got a strange problem while working with SPSS data : I wrote following : library(foreign) data.original = as.data.frame(read.spss(file="c:/Program Files/SPSS/Employee data.sav")) data = as.data.frame(cbind(data.original$MINORITY, data.original$EDUC, data.original$PREVEXP, data.original$JOBCAT, data.original$GENDER)) colnames(data) = c('MINORITY',
2006 Feb 16
3
How to convert SPSS date data to dates?
Dear R Helpers, I have imported an SPSS file that contains date data. The data appear in R in a numeric format, as follows: 10485849600 10477641600 10561104000 10562745600 etc. I'd be extremely grateful if someone could tell me how to make these numbers into comprehensible dates! Thanks, Jonathan Williams
2006 Jun 24
1
difference in results from R vs SPSS
Hi all, 1. I am doing some data analysis using both R and SPSS, to get used to both software packages. I had performed linear regression in R and SPSS for a number of times before this last one and the resulting coefficient values always matched. However, this last data set I was analyzing using simple linear regression and using the command lm(y~x), gave me different readings from R and
2008 Apr 15
2
How can I import user-defined missings from Spss?
Hi, It works for me to import spss datasets via library(foreign) with read.spss or via library Hmisc by (spss.get). But no matter which way I do import the data, user-defined missings from Spss are always lost. (it makes no difference if there are a single value, a range, or any combination of them. They are always ignored). Is there any way in R to find out if any value was user-defined missing
2006 Jun 06
2
SPSS variable lables import
Hi, I try to get the variable labels of a SPSS data file into R but don't find this mentioned in the help file for foreign. Is there another way to get them ? BTW: An SPSS variable name is like: VAR001, whereas the variable label might be 'Identification no.' Thanks in advance, F. Thomas -- .......................................... Dr. Frank Thomas FTR Internet Research 93110
2006 Feb 19
2
Converting factors back to numbers. Trouble with SPSS import data
I'm using Fedora Core 4, R-2.2. The basic question is: can one recover the numerical values used in SPSS after importing data into R with read.spss from the foreign library? Here's why I ask. My colleague sent an SPSS data set. I must replicate some results she calculated in SPSS and one problem is that the numbers used in SPSS for variable values are not easily recovered in R. I'm
2008 Aug 19
2
how to import from SPSS without shortening variable names
Hello, as I import '.sav' files from SPSS, the variable names are shortened to 8 uppercase characters: "sex_of_therapist" will become "SEX_OF_TH" Is there a way around this? How can I retrieve the full names? Greets from Southern Germany, Timo Stolz
2007 Nov 10
3
producing output as *.spo (spss output format)
Dear All I am considering moving from SPSS to R as my stats environment of choice. I have read around and everything looks favourable. There is just one issue on which I have been unable to find information. Many clients ask me to send them output (tables, graphs, etc) as an spss output file (ie .spo). I haven't asked them why, I've just said yes. I know R can produce graphics as
2020 Mar 06
1
[PATCH] virtio_ring: Fix mem leak with vring_new_virtqueue()
On 2/25/20 9:13 PM, Jason Wang wrote: > > On 2020/2/26 ??12:51, Suman Anna wrote: >> Hi Jason, >> >> On 2/24/20 11:39 PM, Jason Wang wrote: >>> On 2020/2/25 ??5:26, Suman Anna wrote: >>>> The functions vring_new_virtqueue() and __vring_new_virtqueue() are >>>> used >>>> with split rings, and any allocations within these