spss

Is it possible to create a pie in pie chart in SPSS or R?

别说谁变了你拦得住时间么 提交于 2019-12-02 05:36:21
问题 This question was migrated from Cross Validated because it can be answered on Stack Overflow. Migrated 5 years ago . I know it is possible to create such double pie charts in excel like this: http://chandoo.org/wp/2009/12/02/group-small-slices-in-pie-charts/ but can SPSS or R do this also? 回答1: In relation to R: The answer to the title question is "yes" ... see ?pie As for the second question, the one in the body - it would be possible but would involve some coding. You'd have to draw two pie

Is it possible to create a pie in pie chart in SPSS or R?

和自甴很熟 提交于 2019-12-02 01:31:56
I know it is possible to create such double pie charts in excel like this: http://chandoo.org/wp/2009/12/02/group-small-slices-in-pie-charts/ but can SPSS or R do this also? In relation to R: The answer to the title question is "yes" ... see ?pie As for the second question, the one in the body - it would be possible but would involve some coding. You'd have to draw two pie charts side by side (which could be managed with two calls to pie ) and use segments or arrows (and text if necessary) to do the additional components of the plot. Here's a rough example: That required the fig argument of

Library (dylib) not loaded - image not found - Python IDE

强颜欢笑 提交于 2019-12-02 01:13:07
Basically I'm trying to run some Python code from savReaderWriter module in order to create a .sav file ready to open in IBM SPSS. As a macOS user I needed to run these two lines in the terminal first for the module to work: echo 'export DYLD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/savReaderWriter/spssio/macos' >> ~/.bash_profile echo 'export LC_ALL=en_US.UTF-8' >> ~/.bash_profile Below you can see a piece of code I'm trying to run in Python: import savReaderWriter savFileName = "someFile.sav" records = [['Test1', 1, 1], ['Test2', 2, 1]]

Exporting to SPSS files in Python Django?

邮差的信 提交于 2019-12-01 23:55:31
i need to export data to SPSS file format in Python (Django), but i can't find util information in google. Is there some way to do this? Someone has tried? thanks in advance! The savReaderWriter package can be used to read or write SPSS files (.sav, zsav), including metadata: https://pypi.python.org/pypi/savReaderWriter/3.1.2 alxbl As far as I am aware, the only API provided by IBM to interact with SPSS is designed to be used in C/C++. You will have to look up the appropriate SPSS developer's guide for your version of SPSS and download the required files from their website. That being said, I

Vars to cases & retain variable/value labels Tableau setup - restructure data for Tableau, flip data

不打扰是莪最后的温柔 提交于 2019-12-01 13:26:07
I am flipping my survey data so I can use it in Tableau. Here is example data in SPSS (keep in mind that each variable has value & variable labels). ID age rate1 rate2 rate3 mr_1 mr_2 mr_3 ... 1 35 8 3 2 1 2 2 40 2 2 3 2 3 41 6 3 5 2 3 4 43 3 3 1 Where rate1-3 are 3 rating questions. Mr_1 to mr_3 is a multiple response check all the apply question (What is your ethnicity? 1=White 2=Hispanic, 3=Black) I flip the data using this: VARSTOCASES /MAKE answer FROM age rate1 rate2 rate3 mr_1 mr_2 mr_3 /INDEX=Index1(7) /KEEP= All /NULL=KEEP. Results look like this: ID Index1 answer 1 1 35 1 2 8 1 3 3 1

Analyze multiple response field from google doc form

情到浓时终转凉″ 提交于 2019-12-01 12:20:21
One of my questionnary made with Google Doc have a multi response set. Let's say the three possible questions are : foo bar foobar People where allowed to tick one or more answers. In my google spreadsheet results, I have : answer1 : foo answer2 : foo, bar answer3 : bar, foobar answer4 : foo, foobar anwser5 : foobar etc. How could I analyze this type of result in SPSS ? I have the intuition that the values could be split in multiple answers to multiple questions by I don't know how to do this. Thanks You could also try to use the index function when creating a new variable in SPSS. For example

Vars to cases & retain variable/value labels Tableau setup - restructure data for Tableau, flip data

非 Y 不嫁゛ 提交于 2019-12-01 11:12:18
问题 I am flipping my survey data so I can use it in Tableau. Here is example data in SPSS (keep in mind that each variable has value & variable labels). ID age rate1 rate2 rate3 mr_1 mr_2 mr_3 ... 1 35 8 3 2 1 2 2 40 2 2 3 2 3 41 6 3 5 2 3 4 43 3 3 1 Where rate1-3 are 3 rating questions. Mr_1 to mr_3 is a multiple response check all the apply question (What is your ethnicity? 1=White 2=Hispanic, 3=Black) I flip the data using this: VARSTOCASES /MAKE answer FROM age rate1 rate2 rate3 mr_1 mr_2 mr

Create summary table of categorical variables of different lengths

扶醉桌前 提交于 2019-11-30 21:11:54
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 attempts have been so poor that posting the code probably won't add to the comprehensibility of the

How can I loop through variables in SPSS? I want to avoid code duplication

半世苍凉 提交于 2019-11-30 14:48:17
Is there a "native" SPSS way to loop through some variable names? All I want to do is take a list of variables (that I define) and run the same procedure for them: pseudo-code - not really a good example, but gets the point across... for i in varlist['a','b','c'] do FREQUENCIES VARIABLES=varlist[i] / ORDER=ANALYSIS. end I've noticed that people seem to just use R or Python SPSS plugins to achieve this basic array functionality, but I don't know how soon I can get those configured (if ever) on my installation of SPSS. SPSS has to have some native way to do this...right? There are two easy

Pairwise Correlation Table

こ雲淡風輕ζ 提交于 2019-11-30 06:51:29
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? This seems like it should be very simple, but I can't seem to figure out a good way. Bill Venables