Displaying 20 results from an estimated 10000 matches similar to: "Basic SPSS commands in R ?"
2000 Apr 26
2
plotting question
I would like to plot two different samples on the same scatterplot in R
using different symbols for the different groups.
Could someone please let me know how this can be done? Thank you very much.
Thad
*****************************************************************************
Thaddeus Tarpey Phone: (937) 775-2861
Wright State University
2004 Feb 10
1
make check in 1.8.1.
I just (finally!!!) got R version 1.8.1 to configure and build under
Solaris 9 (after much travail; there were funnies in my environment
variables that mucked things up, but that's another story).
Anyhow, when I ran ``make check'' I got an error right toward the
end. Looking in the directory ``tests'' I found that the error was
associated with the file reg-tests-3.R, and the
2001 Aug 23
2
Missing Values from Spss-Data
Hello,
i'm a newbie of the really fantastic "R" , but have some
problems to define Missing Values from Spss-Files which i import
with the read.spss(data) command !
What should i do to recode i.e. the values 9,99 & 999 to NA.
Something like this
x <- c(9,99,999,NA)
x==NA
...do not what i want, because the data.frame show
the values 9,99 & 999 and not NA in this fields ?
2012 Nov 08
3
difference percentile R vs SPSS
Dear list,
I am calculating the 95th percentile of a set of values with R and with SPSS
In R:
> normal200<-rnorm(200,0,1)
> qnorm(0.95,mean=mean(normal200),sd=sd(normal200),lower.tail =TRUE)
[1] 1.84191
In SPSS, if I use the same 200 values and select Analyze -> Descriptive Statistics -> Frequencies
and under "Statistics", I type in '95' under Percentiles,
2009 Jul 31
1
help in using gsub and ?
Hi all,
I would like to strip the R prompt from a series of code lines and copy the resulting text into a R script. For example, consider the following :
#####
str1<-"
> library(MASS)
> data(Cars93)
> attach(Cars93)
> imosaic(data.frame(AirBags,Cylinders,Origin))"
str2<-gsub('>','',str1)
######
This gives, as expected .?
> str2
[1] "\n
2005 May 26
2
read.spss in R 2.1.0 & make basic dataframe
Recent changes to read.spss() in the foreign package return a dataframe
containing additional attributes. For example,
>TEMP<-read.spss(choose.files(), to.data.frame=T,use.value.labels=F)
> str(TEMP)
`data.frame': 780 obs. of 8 variables:
$ EXPOS01: atomic 1 1 2 1 2 3 2 4 2 1 ...
..- attr(*, "value.labels")= Named num 5 4 3 2 1
.. ..- attr(*,
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
2008 Aug 01
1
importing explicitly declared missing values in read.spss (foreign)
There is a problem when importing an spss-file containing explicitly declared
missing values in R using the read.spss function from the foreign package.
I'm not sure these problems are the same in every version of spss, I am
using the latest version 16.0.2.
I included http://www.nabble.com/file/p18776776/missingdata.sav
missingdata.sav and
2010 Mar 04
4
Analogue to SPSS regression commands ENTER and REMOVE in R?
I am not sure if this question has been asked before - but is there a
procedure in R (in lm or glm?) that is equivalent to ENTER and REMOVE
regression commands in SPSS?
Thanks a lot!
--
Dimitri Liakhovitski
Ninah.com
Dimitri.Liakhovitski at ninah.com
2003 Nov 23
3
make check reg-tests-3
Should I submit this as a bug report?
--- reg-tests-3.Rout.save Thu Jul 3 09:55:40 2003
+++ reg-tests-3.Rout Sun Nov 23 13:10:57 2003
@@ -1,17 +1,18 @@
-R : Copyright 2003, The R Development Core Team
-Version 1.8.0 Under development (unstable) (2003-07-03)
+R : Copyright 2003, The R Foundation for Statistical Computing
+Version 1.8.1 (2003-11-21), ISBN 3-900051-00-3
R is free software and
2007 Jul 11
5
elementary statistics with R (rkward?)
Hi, I am trying to learn some basic statistics stuff but I cannot find any
elementary statistics exercises using R language. Using RKward would be even
better...
I need that in analysing sociological data, obtained through questionnairres -
findind corelations between variables, relations between different types of
data, etc.
Could anyone recommend simple tutorials/exercises, available on www
2008 Mar 17
8
Table of basic descriptive statistics like SPSS
Dear list readers,
I want to:
1. Get a table of basic descriptive statistics for my variables
with the variable names one below the other
like SPSS descriptive statistics:
Varname N Min Max Mean SD
xxxx x x x x x
xxx x x x x x
....
2. Delete some variables from a data frame or exclude variables
from beeing analyzed.
3. Create a text file / redirect the terminal output to a
2010 Jul 08
4
Duda con orden Cars93
Cordial saludo,
Estoy haciendo una grafica de la base de datos Cars93 conde relaciono
Manufacturer con Price con este codigo
library(MASS)
with(Cars93,plot(Manufacturer, Price, las=2, ylab="Precio (en $1,000)"))
necesito el comando para que queden ordenados de manera ascendente como en
la grafica 2, muchas gracias por su ayuda
Grafica 1
[image: M-P.JPG]
Grafica 2
[image: M-P
2008 Dec 14
1
re ad.spss (foreign) conflict with SPSS 17 files.
SPSS seems to have changed its default datafile format, resulting in issues
for read.spss(). In Windows this results in a warning, in Debian the import
completely fails:
Debian (R version 2.8.0 (2008-10-20) i486-pc-linux-gnu, foreign_0.8-29)
> read.spss("/home/jeroen/samples/Tomato.sav")
Error in iconv(names(rval), cp, "") :
unsupported conversion from 'CP65001'
2007 Apr 05
1
read.spss (package foreign) and SPSS 15.0 files
Hello,
does anyone have experience with reading SPSS Version 15.0 files into R (version 2.4.1, WinXP)?
I have long been sucessfully reading SPSS files with read.spss from the wonderful foreign package, but somehow after upgrading from SPSS14 to SPSS15 I seem to have problems.
Trying a simple example, where test.sav is a SPSS 15.0 data file consisting of x1=c(1,2,3) and
2007 Jan 26
1
spss.get. Warning with SPSS 14 dataset
I am using spss.get to import an SPSS database
"Data.sav", created with SPSS 14 :
df1 <- spss.get("C:/temp/Data.sav" , lowernames=TRUE,
datevars = c("dateinte"))
I am getting this warning. I get the same warning with
read.spss.
Warning message:
C:/temp/Data.sav: Unrecognized record type 7, subtype
16 encountered in system file
This is a stupid
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 Jul 26
3
Read SPSS data (*.sav) in R 1.8.0 (ok) and R1.9.1(error)
Hallo!
I read SPSS data in the following way:
library(Hmisc)
library(foreign)
dat<-spss.get("surv_abb.sav")
In R1.9.1 I got the message:
"Error in all(arg == choices) : Object "typeDate" not
found"
In R1.8.0 the same script works fine.
Does anybody know a possibilty to read a SPSS file
under R1.9.1?
Thanks!
Karl
2009 Feb 07
2
reading SPSS .sav files (PR#13509)
Full_Name: Roger Newton
Version: 2.8.1
OS: windows 2000
Submission from: (NULL) (80.176.228.157)
I have an elderly version of SPSS (version 11) which I still use. R Version
2.6.1 would, and still will, read SPSS *.sav files produced by SPSS version 11.
R version 2.8.1 which I installed two days ago (05/02/09) reports an error and
shuts down when trying to read SPSS version 11 *.sav files using
2012 Sep 08
3
Can I make spss.get reencode from Windows-1252?
Hi all. I have an SPSS file that I'm loading into R with the Hmisc spss.get function. The trouble is that the SPSS file uses the Windows-1252 character set (which I think is the default for SPSS on Windows) instead of plain-ol' Latin-1, and since spss.get doesn't allow me to pass the "reencode" option to read.spss, any characters in Windows-1252 that are not a part of Latin-1