Hi
I have my dataset in long form where each individual has three measure occasions and within each measure occasion there are 3-7 measure points (days). Totally there could be 9 to 21 rows (data points) for each individual. If I want to get descriptive data
of number of individuals (not the number of measure points) and other information at each measure occasion, what syntax can I use? If I then want to present it by gender and by age-group, how do I do it? (At each measure occasion there are two age-groups)
Daniel
|
The simplest solution is to convert to wide format (casestovars). If you don’t want to do that, then you can exploit the indexing which should have three levels: person, occasion within in person (range=1-3) and day within
occasion (range: 1 to 3-7). And then use crosstabs: Crosstabs occasion by day. Crosstabs occasion by day by gender. Gene Maguin From: SPSSX(r) Discussion [mailto:[hidden email]]
On Behalf Of Daniel Arvidsson Hi I have my dataset in long form where each individual has three measure occasions and within each measure occasion there are 3-7 measure points (days). Totally
there could be 9 to 21 rows (data points) for each individual. If I want to get descriptive data of number of individuals (not the number of measure points) and other information at each measure occasion, what syntax can I use? If I then want to present it
by gender and by age-group, how do I do it? (At each measure occasion there are two age-groups) Daniel ===================== 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
|
Administrator
|
In reply to this post by Daniel Arvidsson
I believe you will want to carefully study the AGGREGATE command!
--
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
Free forum by Nabble | Edit this page |