|
I've been trying to run an extremely simple ONEWAY ANOVA using matrix
input and keep getting an error message. I am using SPSS 17.02 (PASW) and the following is my syntax: Matrix data variables=dose rowtype_ depvar /factor=Dose. begin data. 1 n 3 2 n 3 3 n 3 4 n 3 5 n 3 1 mean 9.3 2 mean 45.6 3 mean 42.7 4 mean 30.4 5 mean 28 1 stdev 2.5 2 stdev 4.5 3 stdev 10.9 4 stdev 4.2 5 stdev 7.4 end data. value labels dose 1 '0 hr' 2 ' 24 hr' 3 '0.25' 4'1.0' 5 '2.5'. list var=all. oneway depavar by dose (1,5) /statistics=DESCRIPTIVES /posthoc=SNK /matrix=in(*). Michael Kruger I don't have the raw data and am beginning to take this personally. So any help would be appreciated. ===================== 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 Michael,
You didn't report the error message, but you should get an error about an unidentified variable name. You spelled the dependent variable DEPVAR in the MATRIX DATA command but spelled it DEPAVAR in the ONEWAY command. Remove the first 'a' in depavar and it will run. You don't need to put the range (1,5) after the factor name in the ONEWAY command anymore. The range will trigger a warning with that message and otherwise be ignored. David Matheson SPSS Statistical Support -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Michael Kruger Sent: Tuesday, June 09, 2009 2:59 PM To: [hidden email] Subject: Using matrix input I've been trying to run an extremely simple ONEWAY ANOVA using matrix input and keep getting an error message. I am using SPSS 17.02 (PASW) and the following is my syntax: Matrix data variables=dose rowtype_ depvar /factor=Dose. begin data. 1 n 3 2 n 3 3 n 3 4 n 3 5 n 3 1 mean 9.3 2 mean 45.6 3 mean 42.7 4 mean 30.4 5 mean 28 1 stdev 2.5 2 stdev 4.5 3 stdev 10.9 4 stdev 4.2 5 stdev 7.4 end data. value labels dose 1 '0 hr' 2 ' 24 hr' 3 '0.25' 4'1.0' 5 '2.5'. list var=all. oneway depavar by dose (1,5) /statistics=DESCRIPTIVES /posthoc=SNK /matrix=in(*). Michael Kruger I don't have the raw data and am beginning to take this personally. So any help would be appreciated. ===================== 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 ===================== 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 |
|
In reply to this post by Michael Kruger
oneway depavar by dose (1,5)
change depavar to match the variable name of depvar -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Michael Kruger Sent: Tuesday, June 09, 2009 3:59 PM To: [hidden email] Subject: Using matrix input I've been trying to run an extremely simple ONEWAY ANOVA using matrix input and keep getting an error message. I am using SPSS 17.02 (PASW) and the following is my syntax: Matrix data variables=dose rowtype_ depvar /factor=Dose. begin data. 1 n 3 2 n 3 3 n 3 4 n 3 5 n 3 1 mean 9.3 2 mean 45.6 3 mean 42.7 4 mean 30.4 5 mean 28 1 stdev 2.5 2 stdev 4.5 3 stdev 10.9 4 stdev 4.2 5 stdev 7.4 end data. value labels dose 1 '0 hr' 2 ' 24 hr' 3 '0.25' 4'1.0' 5 '2.5'. list var=all. oneway depavar by dose (1,5) /statistics=DESCRIPTIVES /posthoc=SNK /matrix=in(*). Michael Kruger I don't have the raw data and am beginning to take this personally. So any help would be appreciated. ===================== 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 ===================== 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 |
