Hi guys, I'm pretty new on SPSS. I have a population with classic age
variable and a non-binary ordinal variable (let's say values from 1 to 10, or from A to L). I would like to create only 2 sub-groups, A and B, to compare the ages. For example, how can I compare ages between group A (values 1-3-4) and group B (2-5-6-7-8-9-10)? Thanks for your time. -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== 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
|
DISCLAIMER: If the two sub-groups cannot be specified in advance (i.e.,
before seeing the data), sub-group analysis is suspect, because it capitalizes on the play of chance in a particular sample. Having said that, this should do what you ask. RECODE OrdinalVar (1 3 4 = 1) (ELSE=2) INTO Group. FORMATS Group(F1). VALUE LABELS Group 1 "A (1-3-4)" 2 "B (2-5-6-7-8-9-10)" . T-TEST GROUPS=Group(1 2) /MISSING=ANALYSIS /VARIABLES=Age /CRITERIA=CIN(.95). francy2288 wrote > Hi guys, I'm pretty new on SPSS. I have a population with classic age > variable and a non-binary ordinal variable (let's say values from 1 to 10, > or from A to L). I would like to create only 2 sub-groups, A and B, to > compare the ages. For example, how can I compare ages between group A > (values 1-3-4) and group B (2-5-6-7-8-9-10)? > Thanks for your time. > > > > -- > Sent from: http://spssx-discussion.1045642.n5.nabble.com/ > > ===================== > To manage your subscription to SPSSX-L, send a message to > LISTSERV@.UGA > (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 ----- -- Bruce Weaver [hidden email] 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. -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== 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
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
In reply to this post by francy2288
It's ordinal, but you don't want 2 in the same group as 1, 3 and 4? On Thu, Jun 21, 2018, 1:37 AM francy2288 <[hidden email]> wrote: Hi guys, I'm pretty new on SPSS. I have a population with classic age |
Administrator
|
Good point!
Rick Oliver wrote > It's ordinal, but you don't want 2 in the same group as 1, 3 and 4? > > On Thu, Jun 21, 2018, 1:37 AM francy2288 < > francy2288@ > > wrote: > >> Hi guys, I'm pretty new on SPSS. I have a population with classic age >> variable and a non-binary ordinal variable (let's say values from 1 to >> 10, >> or from A to L). I would like to create only 2 sub-groups, A and B, to >> compare the ages. For example, how can I compare ages between group A >> (values 1-3-4) and group B (2-5-6-7-8-9-10)? >> Thanks for your time. >> >> >> >> -- >> Sent from: http://spssx-discussion.1045642.n5.nabble.com/ >> >> ===================== >> To manage your subscription to SPSSX-L, send a message to >> > LISTSERV@.UGA > (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@.UGA > (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 ----- -- Bruce Weaver [hidden email] 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. -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== 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
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
Administrator
|
Indeed, unless OP has a truly twisted definition of ORDINAL variable!
Bruce Weaver wrote > Good point! > > > Rick Oliver wrote >> It's ordinal, but you don't want 2 in the same group as 1, 3 and 4? >> >> On Thu, Jun 21, 2018, 1:37 AM francy2288 < > >> francy2288@ > >> > wrote: >> >>> Hi guys, I'm pretty new on SPSS. I have a population with classic age >>> variable and a non-binary ordinal variable (let's say values from 1 to >>> 10, >>> or from A to L). I would like to create only 2 sub-groups, A and B, to >>> compare the ages. For example, how can I compare ages between group A >>> (values 1-3-4) and group B (2-5-6-7-8-9-10)? >>> Thanks for your time. >>> >>> >>> >>> -- >>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/ >>> >>> ===================== >>> To manage your subscription to SPSSX-L, send a message to >>> > >> LISTSERV@.UGA > >> (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@.UGA > >> (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 > > > > > > ----- > -- > Bruce Weaver > bweaver@ > 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. > > -- > Sent from: http://spssx-discussion.1045642.n5.nabble.com/ > > ===================== > To manage your subscription to SPSSX-L, send a message to > LISTSERV@.UGA > (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 ----- 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?" -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== 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
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?" |
In reply to this post by Bruce Weaver
Just a note: The recode assumes there are no missing values in the OrdinalVar.
If there are missing OrdinalVar, they will need to be handled slightly differently. See the FM for more. Melissa -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Bruce Weaver Sent: Thursday, June 21, 2018 7:30 AM To: [hidden email] Subject: Re: [SPSSX-L] Split population from non-binary variable DISCLAIMER: If the two sub-groups cannot be specified in advance (i.e., before seeing the data), sub-group analysis is suspect, because it capitalizes on the play of chance in a particular sample. Having said that, this should do what you ask. RECODE OrdinalVar (1 3 4 = 1) (ELSE=2) INTO Group. FORMATS Group(F1). VALUE LABELS Group 1 "A (1-3-4)" 2 "B (2-5-6-7-8-9-10)" . T-TEST GROUPS=Group(1 2) /MISSING=ANALYSIS /VARIABLES=Age /CRITERIA=CIN(.95). francy2288 wrote > Hi guys, I'm pretty new on SPSS. I have a population with classic age > variable and a non-binary ordinal variable (let's say values from 1 to 10, > or from A to L). I would like to create only 2 sub-groups, A and B, to > compare the ages. For example, how can I compare ages between group A > (values 1-3-4) and group B (2-5-6-7-8-9-10)? > Thanks for your time. > > > > -- > Sent from: http://spssx-discussion.1045642.n5.nabble.com/ > > ===================== > To manage your subscription to SPSSX-L, send a message to > LISTSERV@.UGA > (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 ----- -- Bruce Weaver [hidden email] 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. -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== 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 ________________________________ This correspondence contains proprietary information some or all of which may be legally privileged; it is for the intended recipient only. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this correspondence and completely dispose of the correspondence immediately. Please notify the sender if you have received this email in error. NOTE: Messages to or from the State of Connecticut domain may be subject to the Freedom of Information statutes and regulations. ===================== 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 |