|
Hi,
I am trying to igraph with a large sample - which I have read is an issue in SPSS. My data set is saved as a person period data file (ie rows of repeated measures). There are ~3000 IDs with 8 repeated measures (ie. 3000*8 rows). The data I am plotting ranges from valid entries of ~2800 to 600 between repeated measures. 1. What is the alternative to SELECT IF that does not permanently alter the data set, but rather select cases for the IGRAPH syntax and then return the original data set? The first syntax is for a select sample and works well, except for the SELECT IF part. I get a nice spline plot for 50 cases. 2. However I want this split by gender and category (in effect 6 different groups). After reopening the file I ran the second syntax and it produced the 6 group graphs but with no data plotted. Any advice welcome. _____ select if (studyno >= 1001 and studyno <= 1050) IGRAPH /X1=VAR(Age) TYPE=SCALE /Y=VAR(BMI) TYPE=SCALE /STYLE=VAR(STUDYNO) /LINE STYLE=LINE BREAK=NONE INTERPOLATE=SPLINE /SCALERANGE=VAR(bmi) MIN=0 MAX=40. _____ SORT CASES BY SEX Y13WHtR3Cat . SPLIT FILE SEPARATE BY SEX Y13WHtR3Cat . IGRAPH /X1=VAR(Age) TYPE=SCALE /Y=VAR(BMI) TYPE=SCALE /STYLE=VAR(STUDYNO) /LINE STYLE=LINE BREAK=NONE INTERPOLATE=SPLINE /SCALERANGE=VAR(bmi) MIN=0 MAX=40. Regards, Paola "Ours has become a time-poor society, fatigued by non-physical demands and trying to compartmentalize daily living tasks. It is small wonder that physical activity is discarded in this environment" p126 (Steinbeck, 2001) P Please consider the environment before printing this email. ===================== 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 |
|
Hi,
There are at least two options: -use the TEMPORARY command before the SELECT IF statement. -use the FILTER command; something like. COMPUTE myfilter = (studyno >= 1001 and studyno <= 1050). FILTER BY myfilter. You can also use the TEMPORARY command in concjuction with FILTER BY. Cheers!! Albert-Jan I don't understand why SPLIT BY wouldn't work. Maybe the number of graphs becomes very high? --- Paola Chivers <[hidden email]> wrote: > Hi, > > > > I am trying to igraph with a large sample - which I > have read is an issue in > SPSS. My data set is saved as a person period data > file (ie rows of repeated > measures). There are ~3000 IDs with 8 repeated > measures (ie. 3000*8 rows). > The data I am plotting ranges from valid entries of > ~2800 to 600 between > repeated measures. > > > > 1. What is the alternative to SELECT IF that does > not permanently alter the > data set, but rather select cases for the IGRAPH > syntax and then return the > original data set? The first syntax is for a select > sample and works well, > except for the SELECT IF part. I get a nice spline > plot for 50 cases. > > 2. However I want this split by gender and category > (in effect 6 different > groups). After reopening the file I ran the second > syntax and it produced > the 6 group graphs but with no data plotted. > > > > Any advice welcome. > > > > > > _____ > > select if (studyno >= 1001 and studyno <= 1050) > > > > IGRAPH > > /X1=VAR(Age) TYPE=SCALE > > /Y=VAR(BMI) TYPE=SCALE > > /STYLE=VAR(STUDYNO) > > /LINE STYLE=LINE BREAK=NONE INTERPOLATE=SPLINE > > /SCALERANGE=VAR(bmi) MIN=0 MAX=40. > > > > > > _____ > > SORT CASES BY SEX Y13WHtR3Cat . > > SPLIT FILE > > SEPARATE BY SEX Y13WHtR3Cat . > > > > IGRAPH > > /X1=VAR(Age) TYPE=SCALE > > /Y=VAR(BMI) TYPE=SCALE > > /STYLE=VAR(STUDYNO) > > /LINE STYLE=LINE BREAK=NONE INTERPOLATE=SPLINE > > /SCALERANGE=VAR(bmi) MIN=0 MAX=40. > > > > > > Regards, > > Paola > > > > "Ours has become a time-poor society, fatigued by > non-physical demands and > trying to compartmentalize daily living tasks. It > is small wonder that > physical activity is discarded in this environment" > p126 (Steinbeck, 2001) > > > > P Please consider the environment before printing > this email. > > ===================== > 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 > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ===================== 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 |
