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
Question about Rank AcrossGood morning, I have 3 variables that I need to rank. There are some cells in those variables that …
how to use table command to analyze multiple choice question?hi masters, I just meet a problem which is somewhat frustrated. The survey question always contain…
clustered standard errors in double selection lasso causes error (dslogit, vce(cluster clustervar))Dear Statalist-users, I´m using Stata 16.1. In my analysis I want to cluster standard errors at the…
Dominance analysis (domin) after xthybridDear all, I'm using the user-written command xthybrid (see Schunck & Perales, 2017, full refere…
Stacking a bar graphHi, I have a binary variable (childcare_nofsa) and a categorical variable (state). I'd like to prod…
Subscribe to:
Post Comments (Atom)
0 Response to creating a scale with round numbers
Post a Comment