|
I have PASW 18 grad pack. My data are 50
variables from a survey and are nominal, ordinal
and interval with most variables ordinal. I don't have the SPSS program
for missing values pattern and would like to know the syntax for
finding any nonrandom patterns. (I'm a beginner and so obvious things
may escape me). Thanks, Jan
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
Jan
missing
values is a standard command in all SPSS packages. What
precisely do you mean by "missing values pattern". Did you look at my
tutorials yet?
General format
missing
values <varlist1> (<value
list1>)
/ <varlist2> (<value list2>)
etc.
The syntax for declaring missing values is
just like that in tutorial 2.2.1.5 Specimen answer for homework exercise which goes
:
missing values
V1408
(8,9)
/V1409 v1412 (98,99) . John
|
|
Thanks everyone!
|
|
In reply to this post by John F Hall
Jan
I'm still not sure what you mean by "pattern" or
"random"?
You could try counting the number of
variables with missing values within any one case:
count xx = <v1
to vn> (missing) .
but that will only yield something approximating a
normal curve (the more things you add together, the closer they get to
this).
If you run a frequency count on all the variables,
you will get a count of cases missing for each
one.
Have you declared missing values for all
variables? If so, a shorthand trick would be something like:
recode <v1 to
vn> (missing = 1)(else = 0) into <y1 to
yn>.
mult response groups = (<y1 to yn> (1))
/freq <y1 to yn>.
I just tested this on one of my data
sets.
title 'Sample run for Jan McClure'
.
*generate count of missing values across arbitrary ssetof variables . count x1 = var126 to var150 var152 to var 155 var157 to var171 (missing) . freq x1 . var lab x1 'Total missing values across vars in list' .
[Not sure where 2 and 14 came
from!]
* Dichotomise above vars into dummy set
+ x126 to x150 x152 to x155 x157 to x171 . *Make sure there are no variables missing in the sequence, otherwise x126 . . . x171 won't have + the same number of variables as var126 . . . var171 . recode var126 to var150 var152 to var155 var157 to var171 (missing = 1)(else = 0) into x126 to x150 x152 to x155 x157 to x171 . val lab x126 to x171 0 'Valid' 1 'Missing' . *Use mult response in dichotomous mode to see how many
cases are missing for each var in the list
+ but some high values may be for questions not asked of whole sample . mult response groups = x2 (x126 to x150
x152 to x155 x157 x171 (1))
/freq x2 .
The low counts for many variables derive from
respondents giving scores on all or most 0-10 satisfaction scales.
If you want to live dangerously, use the originial
vars, but make sure the recode is only temporary, otherwise it will be
permanent.
temp .
recode var126 to var150 var152 to var155 var157 to var171 (missing = 1)(else = 0) . mult resp groups x3 (var126 to var150 var152 to var155 var157 to var171 (1)) /freq x3 .
Someone else will be better qualified to advise you
on random vs non-random patterns, but you could try running tabulations against
demographic variables such as gender, agegroup, educational level
etc.
Don't forget to delete the dummy variables (unless
you want to keep them).
John
----- Original Message -----
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Dear John,
I think the question may be whether the missing values comply to the MCAR, MAR or MNAR condition (I've no time to look this up but I think Little and/or Rubin (not RubEn ;-)) invented a test for this. Something like replacing all missings by 0 and valids by 1 and checking whether the resulting correlation matrix deviates statistically significantly from an identity matrix or something. "Does missingness on v1 'say anything' about missingness on v2?" IIRC something like this is present in the MISSING VALUES option I think the OP referred to. Best, Ruben van den Berg Consultant Models & Methods TNS NIPO Email: [hidden email] Mobiel: +31 6 24641435 Telefoon: +31 20 522 5738 Internet: www.tns-nipo.com Date: Mon, 2 Aug 2010 07:49:10 +0200 From: [hidden email] Subject: Re: syntax to find any missing values pattern To: [hidden email] Jan
I'm still not sure what you mean by "pattern" or "random"?
You could try counting the number of variables with missing values within any one case:
count xx = <v1 to vn> (missing) .
but that will only yield something approximating a normal curve (the more things you add together, the closer they get to this).
If you run a frequency count on all the variables, you will get a count of cases missing for each one.
Have you declared missing values for all variables? If so, a shorthand trick would be something like:
recode <v1 to vn> (missing = 1)(else = 0) into <y1 to yn>.
mult response groups = (<y1 to yn> (1))
/freq <y1 to yn>.
I just tested this on one of my data sets.
title 'Sample run for Jan McClure' .
*generate count of missing values across arbitrary ssetof variables . count x1 = var126 to var150 var152 to var 155 var157 to var171 (missing) . freq x1 . var lab x1 'Total missing values across vars in list' .
[Not sure where 2 and 14 came from!]
* Dichotomise above vars into dummy set
+ x126 to x150 x152 to x155 x157 to x171 . *Make sure there are no variables missing in the sequence, otherwise x126 . . . x171 won't have + the same number of variables as var126 . . . var171 . recode var126 to var150 var152 to var155 var157 to var171 (missing = 1)(else = 0) into x126 to x150 x152 to x155 x157 to x171 . val lab x126 to x171 0 'Valid' 1 'Missing' . *Use mult response in dichotomous mode to see how many cases are missing for each var in the list
+ but some high values may be for questions not asked of whole sample . mult response groups = x2 (x126 to x150 x152 to x155 x157 x171 (1))
/freq x2 .
The low counts for many variables derive from respondents giving scores on all or most 0-10 satisfaction scales.
If you want to live dangerously, use the originial vars, but make sure the recode is only temporary, otherwise it will be permanent.
temp .
recode var126 to var150 var152 to var155 var157 to var171 (missing = 1)(else = 0) . mult resp groups x3 (var126 to var150 var152 to var155 var157 to var171 (1)) /freq x3 .
Someone else will be better qualified to advise you on random vs non-random patterns, but you could try running tabulations against demographic variables such as gender, agegroup, educational level etc.
Don't forget to delete the dummy variables (unless you want to keep them).
John
----- Original Message -----
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Administrator
|
Yes, I read it that way too. I don't have SPSS on this machine, but here's an example of how to use the MULTIPLE IMPUTATION command to explore the pattern of "missingness". MULTIPLE IMPUTATION { variable list here } /IMPUTE METHOD=NONE /MISSINGSUMMARIES OVERALL VARIABLES (MINPCTMISSING=0) PATTERNS. IIRC, the MVA command can also be used for this purpose. HTH.
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
| Free forum by Nabble | Edit this page |
