Date: Thu, 11 Nov 2010 13:21:08 -0500
Reply-To: Christine Roman <ctromanph@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Christine Roman <ctromanph@GMAIL.COM>
Subject: Re: Creating an Ordinal Variable
In-Reply-To: <4B7D94293459DE418D902EFAF874C4A7085E585428@STPPEX.catmktg.com>
Content-Type: text/plain; charset=ISO-8859-1
It is an ordinal variable so yes Suzzane I am looking for for 1 = 50-53, 2
= 54-57 etc.
On Thu, Nov 11, 2010 at 1:12 PM, Suzanne McCoy <
Suzanne.McCoy@catalinamarketing.com> wrote:
> Christina,
>
> Are you wanting something like what Mark has below or are you looking for 1
> = 50-53, 2 = 54-57 etc.?
>
> Suzanne
>
> -----Original Message-----
> From: Keintz, H. Mark [mailto:mkeintz@wharton.upenn.edu]
> Sent: Thursday, November 11, 2010 1:09 PM
> To: Suzanne McCoy; SAS-L@LISTSERV.UGA.EDU
> Subject: RE: Creating an Ordinal Variable
>
> Suzanne:
>
> It's not exactly ordinal as I understand the concept (where the "distance"
> between successively scores is not constant). After all, you're just
> rounding down to a 4-pound value, and then dividing by 4.
>
> It's more of a step function, no?
>
> new = floor((old-50)/4) + 1;
>
>
> regards,
> Mark Keintz
>
>
> > -----Original Message-----
> > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> > Suzanne McCoy
> > Sent: Thursday, November 11, 2010 12:33 PM
> > To: SAS-L@LISTSERV.UGA.EDU
> > Subject: Re: Creating an Ordinal Variable
> >
> > This would be a good use of a user defined format for the ranges.
> >
> > -----Original Message-----
> > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> > Christina Morales
> > Sent: Thursday, November 11, 2010 12:19 PM
> > To: SAS-L@LISTSERV.UGA.EDU
> > Subject: Creating an Ordinal Variable
> >
> > Hello,
> >
> > I am trying to create an ordinal variable out of a continuous variable
> > that
> > measures weight. I want to create a variable that is increments of 4
> > for this
> > weight variable. So the min weight is 50 and the max weight is 250 so I
> > want
> > to create a variable with values from 1-50 that represent the weight in
> > increments of 4. So 1 = 50pounds to 53 pounds, etc.
> >
> > Any help will be appreciated.
>
|