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
Am I correct with the tow step GMM syntax?Hello dear Stata users, I am doing research on working capital management and firm performance with…
Error Component Random Parameter Logit Model with Correlated Errors in STATA 16Hi everyone, I am trying to estimate an Error Component Random Parameter Logit Model with Correlated…
Generate random points from a given point coordinatesHi, I have a database of coordinates (lat, lon) and I would like to randomly generate a set of new …
testing validity with cmp approachDear all, I am estimating an IV-oprobit using the cmp command. How can I test the validity of my in…
group data in a panel setDear Statalist, Here is a part of the sample data, which shows the gender of each employee in 3500 …
Subscribe to:
Post Comments (Atom)
0 Response to creating a scale with round numbers
Post a Comment