LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2008)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SPSSX-L page