| Date: | Tue, 29 Apr 2008 17:19:29 -0400 |
| Reply-To: | Gene Maguin <emaguin@buffalo.edu> |
| Sender: | "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU> |
| From: | Gene Maguin <emaguin@buffalo.edu> |
| Subject: | Re: random sample of one level of nested mlm data |
| In-Reply-To: | <964737.60122.qm@web80406.mail.mud.yahoo.com> |
| Content-Type: | text/plain; charset="us-ascii" |
Matthew,
Although I'm sure you can work the problem with the data in a 'long' format,
I'd convert it to 'wide' via a Casestovars command (I'll assume you are
familiar with this command from the syntax reference.) Then,
Do a count of sysmis/missing values for the six husband/wife T1-T3
variables.
Get rid of cases with a count of 1 or greater.
Run a frequencies to get the number of valid cases. Let this number be M.
Do a sample command of this form (refer to syntax reference for
documentation):
Sample 200 from M.
Finish up with a Varstocases command to restore your data to the prior long
format.
Gene Maguin
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (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
|