|
Hi,
I wonder how i create a new variable to identify the cases which have complete data (4 waves) or imcomplete data (3, 2, or just 1 wave). Thanks Yawen On Dec 12, 2007 12:16 PM, Richard Ristow <[hidden email]> wrote: > I've made this suggestion before, but I think it's worth a quick > repetition now. > > Datasets (SPSS 14+) were implemented to operate parallel in many ways > to SPSS-format saved files on disk; but, deliberately, with certain > major differences. The most important of these was that GET FILE=... > and SAVE OUTFILE=... cannot refer to datasets. > > A corollary, intended or not, is that XSAVE OUTFILE= cannot refer to > a dataset, either. > > The DATASET commands offer reasonably good equivalents for GET and > SAVE; but there's no equivalent to XSAVE. If you use XSAVE, you use > an explicit disk file. > > That matters, because you can get some effects with XSAVE that are, > at best, difficult any other way. > > I was reminded of this just now, when I wrote some code that needs > XSAVE for such a purpose. The code's in my SPSSX-L posting (my > *second* in this thread), > > Date: Tue, 11 Dec 2007 18:43:13 -0500 > From: Richard Ristow <[hidden email]> > Subject: Re: [Many-to-many] Merge Files > To: [hidden email] > > -Cheers, and SPSS ever onward, > Richard > > ===================== > 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 > -- --------------------------------------------------------- Yawen Li Ph.D candidate Program Manager/China Program School of Social Work University of Southern California MRF 347, 669 W 34th St. Los Angeles Tel: 213-740-1391 Email: [hidden email] http://www-scf.usc.edu/~yawenli/ ===================== 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 |
|
Yawen
This should work (tested on a dataset with ID values and wave values only). Note that it will create the Nrec value for all waves, so by running the crosstab, you would get the number of cases per wave with complete data. Using the wave value for the first record (assuming that all cases have the first record), you would know the total N of IDs with complete records. aggregate outfile=* mode=addvariables/ break=ID/ nrec=N. compute complete=(nrec=4). cro tab complete by wave. Melissa -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Yawen LI Sent: Wednesday, December 12, 2007 7:17 PM To: [hidden email] Subject: [SPSSX-L] longitudinal data Hi, I wonder how i create a new variable to identify the cases which have complete data (4 waves) or imcomplete data (3, 2, or just 1 wave). Thanks Yawen On Dec 12, 2007 12:16 PM, Richard Ristow <[hidden email]> wrote: > I've made this suggestion before, but I think it's worth a quick > repetition now. > > Datasets (SPSS 14+) were implemented to operate parallel in many ways > to SPSS-format saved files on disk; but, deliberately, with certain > major differences. The most important of these was that GET FILE=... > and SAVE OUTFILE=... cannot refer to datasets. > > A corollary, intended or not, is that XSAVE OUTFILE= cannot refer to a > dataset, either. > > The DATASET commands offer reasonably good equivalents for GET and > SAVE; but there's no equivalent to XSAVE. If you use XSAVE, you use an > explicit disk file. > > That matters, because you can get some effects with XSAVE that are, at > best, difficult any other way. > > I was reminded of this just now, when I wrote some code that needs > XSAVE for such a purpose. The code's in my SPSSX-L posting (my > *second* in this thread), > > Date: Tue, 11 Dec 2007 18:43:13 -0500 > From: Richard Ristow <[hidden email]> > Subject: Re: [Many-to-many] Merge Files > To: [hidden email] > > -Cheers, and SPSS ever onward, > Richard > > ===================== > 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 > -- --------------------------------------------------------- Yawen Li Ph.D candidate Program Manager/China Program School of Social Work University of Southern California MRF 347, 669 W 34th St. Los Angeles Tel: 213-740-1391 Email: [hidden email] http://www-scf.usc.edu/~yawenli/ ===================== 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 PRIVILEGED AND CONFIDENTIAL INFORMATION This transmittal and any attachments may contain PRIVILEGED AND CONFIDENTIAL information and is intended only for the use of the addressee. If you are not the designated recipient, or an employee or agent authorized to deliver such transmittals to the designated recipient, you are hereby notified that any dissemination, copying or publication of this transmittal is strictly prohibited. If you have received this transmittal in error, please notify us immediately by replying to the sender and delete this copy from your system. You may also call us at (309) 827-6026 for assistance. ===================== 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 |
| Free forum by Nabble | Edit this page |
