Hey everyone,
I'm creating an attitude scale concerning support of Lesbians' and Gays' rights with three variable a b c, coded from 1 to 4, all in the same direction.
I'm using the command:
alpha a b c, item gen(LGtotal)
when i tab LGtotal, i obtain values like 1.66667 or 1.33333
I'd like to have only round number.
In another scale, I have coded 1=1 1.5=2 2=3 etc., so I've tried to do the same here, but it doesn't work and the values with more than one figure after the comma stays even though I mentioned them in the command:
recode LGtotal (1=1) (1.333333 1.5 1.666667=2) (2=3) (2.333333 2.5 2.666667=4) (3=5) (3.333333 3.666667 3.5=6) (4=7) (4.333333 4.5 4.666667=8) (5=9), gen (LGrights)
Do you have any idea, why this doesn't work / what I could do to obtain round number by creating my attitude scale?
Thanks a lot,
Juliette
Related Posts with creating a scale with round numbers
Mediation problemHi all,I was investigating whether political identity would affect income through social networks, s…
Comparing data among two string columnsDear Statalist members, I want to identify the political connections of the firms. For this I have c…
Is Mata at par with C in terms of speed?Since there is no discussion on this topic, I am posting this question here. Is Mata at par with C i…
How to get sum of categoryHi everyone, I use id and type to generate dummy_1~dummy_5 My data looks like this: id type dumm…
Problem with macro in forvaluesHi! I'm trying to construct the variables for exporter-time and importer-time fixed effects for our …
Subscribe to:
Post Comments (Atom)
0 Response to creating a scale with round numbers
Post a Comment