|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Testing the significant difference in Proportions
Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how. |
|
|
|
Re: Testing the significant difference in ProportionsYou can always roll your own, like this: data list list / cat (f2.0) x N (2f6.0). begin data 1 40 100 2 30 100 3 80 100 4 40 100 5 34 100 end data. compute p = x/N. compute se = SQRT( p*(1-p)/N). compute z = (p - .5)/se. compute pvalue = 2*(1-(CDF.NORMAL(abs(z),0,1))) . format se pvalue (f5.3). list. You'll have to fill in the correct values of X and N, of course. --
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." NOTE: My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. |
|
|
|
Re: Testing the significant difference in ProportionsNote also that there is a PROPOR extension command available from SPSS Developer Central (www.spss.com) that will construct various confidence intervals for proportions. It requires at least version 16 and the Python plugin, but no Python knowledge is required to use it.
-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@...] On Behalf Of Bruce Weaver Sent: Monday, July 06, 2009 5:27 AM To: SPSSX-L@... Subject: Re: [SPSSX-L] Testing the significant difference in Proportions Jims More wrote: > > I have two categorical variables. One is the response variable, a yes/no > variable. The other is a categorical predictor variable which has 5 > categories. The proportion table of the gathered data (n=5000) looks like > as follows: > > Row % of Yes Response Row % of No > Response > Category1 .40 .60 > Category2 .30 .70 > Category3 .80 20 > Category4 .40 .60 > Category5 .34 .66 > > How to test using SPSS if the proportions of Yes and No are significantly > equal for each category? > > Thank you for any help. > Jims > You can always roll your own, like this: data list list / cat (f2.0) x N (2f6.0). begin data 1 40 100 2 30 100 3 80 100 4 40 100 5 34 100 end data. compute p = x/N. compute se = SQRT( p*(1-p)/N). compute z = (p - .5)/se. compute pvalue = 2*(1-(CDF.NORMAL(abs(z),0,1))) . format se pvalue (f5.3). list. You'll have to fill in the correct values of X and N, of course. ----- -- Bruce Weaver bweaver@... http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." -- View this message in context: http://www.nabble.com/Testing-the-significant-difference-in-Proportions-tp24349163p24353800.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@... (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 LISTSERV@... (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 |
|
|
|
How to open SPSS16 outputs in SPSS15?
Start chatting with friends on the all-new Yahoo! Pingbox today!! It's easy to create your personal chat space on your blogs |
|
|
|
Re: How to open SPSS16 outputs in SPSS15?As far as I know, and I’m willing to be corrected by someone else, it is not possible to open output generated by 16 in any earlier version. The way I get
round this problem is to export the output to a Word file and then send that to the people who need it. This obviously works for people who do not have SPSS
Best Wishes John S. Lemon Student Liaison Officer Directorate of Information Technology (DIT) - University of Aberdeen Edward Wright Building: Room G51 Tel: +44 1224 273350 Fax: +44 1224 273372 From: SPSSX(r) Discussion [mailto:SPSSX-L@...]
On Behalf Of Eins Bernardo
Start chatting with friends on the all-new Yahoo! Pingbox today!!
The University of Aberdeen is a charity registered in Scotland, No SC013683. |
|
|
|
Re: Re: How to open SPSS16 outputs in SPSS15?hi,
in spsstools.net, i found a interesting scripts. http://www.spsstools.net/Scripts/PivotTables/CropAndRetain.txt 'This Script allows you to delete all rows in a Pivot Table beyond a cut 'point that you can specify (intNumberRowsToKeep). 'It also allows you to chose a particular row label (strSearchRowToKeep) 'to keep, even if it is below the cut point intNumberRowsToKeep. but i am newbie of spss scripts. i think this one can help me, but i do not know how to change some places to fit my requirment. anyway, thanks for lemon's rapid reply. if anyone can help me about that script, please continue.... thanks. ashura ku ===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@... (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 |
|
|
|
|
|
|
|
Re: Testing the significant difference in Proportions
Have a new Yahoo! Mail account? Kick start your journey by importing all your contacts! |
|
|
|
Re: Testing the significant difference in ProportionsHi Eins:
You don't need a special syntax to achieve that task. You have to split your file by the categorical predictor and then run a goodness of fit test (ANALYZE -> NON PARAMETRIC -> CHI-SQUARE) for the Yes/No variable with equal expected values. That's it. Marta Eins Bernardo wrote: > Hi Jims, Bruce, et al, > > Can someone translate the syntax of Bruce into syntax that do the same but for SPSS data file with variables(predictor and dependent) in the columns > Jims More wrote: > > > > I have two categorical variables. One is the response variable, a > yes/no > > variable. The other is a categorical predictor variable which has 5 > > categories. The proportion table of the gathered data (n=5000) > looks like > > as follows: > > > > Row % of Yes Response Row % of No > > Response > > Category1 .40 .60 > > Category2 .30 .70 > > Category3 .80 20 > > Category4 .40 .60 > > Category5 .34 .66 > > > > How to test using SPSS if the proportions of Yes and No are > significantly > > equal for each category? > > > > Thank you for any help. > > Jims > > > Bruce replied: > > You can always roll your own, like this: > > data list list / cat (f2.0) x N (2f6.0). > begin data > 1 40 100 > 2 30 100 > 3 80 100 > 4 40 100 > 5 34 100 > end data. > > compute p = x/N. > compute se = SQRT( p*(1-p)/N). > compute z = (p - .5)/se. > compute pvalue = 2*(1-(CDF.NORMAL(abs(z),0,1))) . > format se pvalue (f5.3). > list. > > You'll have to fill in the correct values of X and N, of course. > . > > Thank you. > Eins > > > ------------------------------------------------------------------------ > Have a new Yahoo! Mail account? > <http://us.rd.yahoo.com/SIG=11dea1p2c/**http%3A%2F%2Fwww.trueswitch.com%2Fyahoo-ph> > Kick start your journey by importing all your contacts! -- For miscellaneous SPSS related statistical stuff, visit: http://gjyp.nl/marta/ ===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@... (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 embeddable forum powered by Nabble | Forum Help |