spss

How to open spss data files in excel?

纵饮孤独 提交于 2019-11-30 06:03:39
I want to open spss .sav data files in excel without open the spss files(i don't want to convert spss data file into excel file), I know this is possible using OLDB connection, but i don't know how to do this. Can anyone help me to do this? Thanks in advance. I converted sav to csv online: http://pspp.benpfaff.org/ In order to download that driver you must have a license to SPSS. For those who do not, there is an open source tool that is very much like SPSS and will allow you to import SAV files and export them to CSV. Here's the software And here are the steps to export the data . (Not

Create summary table of categorical variables of different lengths

一曲冷凌霜 提交于 2019-11-30 04:54:55
问题 In SPSS it is fairly easy to create a summary table of categorical variables using "Custom Tables": How can I do this in R? General and expandable solutions are preferred, and solutions using the Plyr and/or Reshape2 packages, because I am trying to learn those. Example Data: (mtcars is in the R installation) df <- colwise(function(x) as.factor(x) ) (mtcars[,8:11]) P.S. Please note, my goal is to get everything in one table like in the picture. I have been strugling for many hours but my

SPSS syntax - use path of the file

丶灬走出姿态 提交于 2019-11-29 11:38:52
I have a bunch of SPSS data and syntax files which I am moving around, changing folders on a daily basis. However, the relative paths remains the same. Is there a way to make use of this fact? e.g.: use the INCLUDE command and reference a syntax file which is always one path level up; or use GET to open a file, located two levels UP Googling around I found some reference to the HOST command, but I did not quite make it to work. Any input would be appreciated :) Thanks a lot in advance You can get the relative path of a SPSS syntax (provided it is saved) using python. SpssClient

Pairwise Correlation Table

狂风中的少年 提交于 2019-11-29 07:19:52
问题 I'm new to R, so I apologize if this is a straightforward question, however I've done quite a bit of searching this evening and can't seem to figure it out. I've got a data frame with a whole slew of variables, and what I'd like to do is create a table of the correlations among a subset of these, basically the equivalent of "pwcorr" in Stata, or "correlations" in SPSS. The one key to this is that not only do I want the r, but I also want the significance associated with that value. Any ideas?

Read SPSS file into R

ⅰ亾dé卋堺 提交于 2019-11-28 15:52:43
I am trying to learn R and want to bring in an SPSS file, which I can open in SPSS. I have tried using read.spss from foreign and spss.get from Hmisc . Both error messages are the same. Here is my code: ## install.packages("Hmisc") library(foreign) ## change the working directory getwd() setwd('C:/Documents and Settings/BTIBERT/Desktop/') ## load in the file ## ?read.spss asq <- read.spss('ASQ2010.sav', to.data.frame=T) And the resulting error: Error in read.spss("ASQ2010.sav", to.data.frame = T) : error reading system-file header In addition: Warning message: In read.spss("ASQ2010.sav", to

information from `label attribute` in R to `VARIABLE LABELS` in SPSS

本小妞迷上赌 提交于 2019-11-28 07:03:52
I'm working in R, but I need to deliver some data in SPSS format with both 'variable labels' and 'value labels' and I'm kinda stuck. I've added variable labels to my data using the Hmisc 's label function. This add the variable labels as a label attribute , which is handy when using describe() from the Hmisc package. The problem is that I cannot get the write.foreign() function, from the foreign package, to recognize these labels as variable labels. I imagine I need to modify write.foreign() to use the label attribute as variable label when writing the .sps file. I looked at the R list and at

Read SPSS file into R

谁说我不能喝 提交于 2019-11-27 09:23:41
问题 I am trying to learn R and want to bring in an SPSS file, which I can open in SPSS. I have tried using read.spss from foreign and spss.get from Hmisc . Both error messages are the same. Here is my code: ## install.packages("Hmisc") library(foreign) ## change the working directory getwd() setwd('C:/Documents and Settings/BTIBERT/Desktop/') ## load in the file ## ?read.spss asq <- read.spss('ASQ2010.sav', to.data.frame=T) And the resulting error: Error in read.spss("ASQ2010.sav", to.data.frame

Ignore escape characters (backslashes) in R strings

自古美人都是妖i 提交于 2019-11-26 13:58:27
问题 While running an R-plugin in SPSS, I receive a Windows path string as input e.g. 'C:\Users\mhermans\somefile.csv' I would like to use that path in subsequent R code, but then the slashes need to be replaced with forward slashes, otherwise R interprets it as escapes (eg. "\U used without hex digits" errors). I have however not been able to find a function that can replace the backslashes with foward slashes or double escape them. All those functions assume those characters are escaped. So, is