spss

Deleting Value Labels in SPSS

和自甴很熟 提交于 2019-12-11 10:37:20
问题 I imported data from survey monkey into spss and survey monkey automatically assigns values and value labels. My values and labels are currently something like this: 1 "Married" 2 "Single" 3 "777" 4 "999" I re-coded variables so that 3=777 and 4=999. Then I set 777 and 999 to missing. I then used ADD VALUE LABELS to add the 777= "Refused" and 999= "Don't know". How do I use syntax to delete the Value and Value Labels for 3 and 4? These are no longer true since I re-coded values 3 and 4. I

SPSS - merging files with duplicate cases of ID variable and new cases/variables

…衆ロ難τιáo~ 提交于 2019-12-11 08:55:03
问题 I have an administrative dataset for store visits from multiple years that I am trying to merge into one under the ID variable. Each dataset has duplicates of an ID that occur during different store visits, annotated by Date . Some of the more recent data files also have new variables ( Y ) not contained in the old data files. Datasets from different years will also contain different cases indicated by different ID . Also, some variables may be the same for each case but at different dates. I

Combining add cases and add variables by merging files in SPSS

假如想象 提交于 2019-12-11 06:03:51
问题 I would like to merge different SPSS files. The PAID indicates different persons. The files also contain the variable ID which indicates the moment of measurement. So ID=1 means that the data are results of measurement one (ID=2 ; measurement two etc.). However, not all data files contain the same moments of measurement. I have already read the following post, but that has not completely answered my question: SPSS - merging files with duplicate cases of ID variable and new cases/variables

How to visualize effect of running kmeans algorithm in SPSS?

别说谁变了你拦得住时间么 提交于 2019-12-11 04:39:10
问题 How to visualize effect of runnng kmeans algoritm in SPSS ? I really don't see there any additional graphical options, but I think I've seen some visualizations of kmeans results made in SPSS, which seemed dedicated to kmeans procedure. I would like to visualize values of centers of clusters. 回答1: You might be interested in the cluster silhouette plots available from the STATS CLUS SIL extension command for any clustering method. Requires the Python Essentials available from the SPSS

SPSS creating a loop for a multiple regression over several variables

China☆狼群 提交于 2019-12-11 04:38:21
问题 For my master thesis I have to use SPSS to analyse my data. Actually I thought that I don't have to deal with very difficult statistical issues, which is still true regarding the concepts of my analysis. BUT the problem is now that in order to create my dependent variable I need to use the syntax editor/ programming in general and I have no experience in this area at all. I hope you can help me in the process of creating my syntax. I have in total approximately 900 companies with 6 year

How to concatenate quotes onto a string using spss macro syntax

大兔子大兔子 提交于 2019-12-11 04:37:18
问题 I have an excel worksheet containing thousands of file paths. I have imported them into an spss dataset. The goal is to rename the all the files that live within those paths. My plan is to run a mass GET FILE / SAVE OUTFILE loop to get it done. I already have code that 99% works. The problem is that the file paths do not import from excel with quotations around them. So when I run my GET / SAVE macro there are no quotations around the file paths and the GET FILE can not run. I can not figure

Merging 2 files without a common key

≯℡__Kan透↙ 提交于 2019-12-11 04:27:51
问题 I have 2 files. One is a time_file which has 3000 rows and the other is userid file which has 2000 rows. I want to merge the two, so that each row (ID) in the userid file is paired with the full data from each row of the time_file . Rows 1-3000 would show the first userid with each of the dates. Rows 3001-6000 would show the 2nd userid with each of the dates, and so on. Thanks in advance! Time file mo day year date 11 1 2015 11/1/2015 11 2 2015 11/2/2015 11 3 2015 11/3/2015 11 4 2015 11/4

Compute variable mean with case removed in SPSS…many times

此生再无相见时 提交于 2019-12-11 03:52:12
问题 I hope this is an easy question but I'm having trouble creating SPSS syntax for it. I have a dataset with a single variable and about 200 cases. I need to compute the mean of that variable, but I need to compute the mean 200 times such that it is computed once with each case removed. So the mean needs to be computed 200 times, removing each case once (and then replacing it) and calculating the mean with that case missing. In other words, the first time I compute the mean it should exclude the

Standarized residuals in SPSS not maching R rstandard(lm())

我们两清 提交于 2019-12-11 02:45:02
问题 While looking for a R related solution I found some inconsistency between R and SPSS (ver. 24) in computing standardized residuals in a simple linear model. It appears that what SPSS calls standarized residuals matches R studentized residuals I'm far for assuming there is a software bug somewhere, but clearly things differ between those two programs. Have a look at this example #generate data in R set.seed(111) y = rnorm(20, 0, 1) x = rnorm(20, 1, 1) #calculate and standarized residuals

SPSS Syntax to add up values for all variables with the same prefix

╄→尐↘猪︶ㄣ 提交于 2019-12-11 02:27:49
问题 I am wondering if there is a way to have SPSS add up all variables that have the same prefix. For example, I have variables named MFQAP.1 , MFQAP.2 , MFQAP.3 , etc. Is there a way to tell SPSS to add up all variables that begin with MFQAP. ? I know I can tell SPSS to add up all variables from MFQAP.1 to MFQAP.n (where n is the highest number in the dataset). However, I am working with a dataset that will be continually updated, and the highest value for n may change. I do not want to have to