Hello!
I just started learning Stata and I am using a consensus data set and trying to combine a bunch of different variables to make one "Happy People" vs "Unhappy People" variable and then see which group is more active in Political Rallys. The variables I want to use are:
p_psych 1 (Self- Described Anxious rated 1 - 5)
p_mental (Mental Health rated 1 - 5)
p_life_ideal (In most ways my life is ideal rated 1 - 5)
p_life_sat (I am satisfied with my life rated 1 - 5)
If there's a way to combine these I would love to hear your thoughts! I have no idea what I'm doing so anything would help!
Thank you!
Related Posts with Combining multiple variables
Nesting foreach loops to check and print variablesHello, Statalist. I have browsed these forums for a while now and have solved many of my issues by d…
If and only if operatorHi Statalist, Random question: why isn't there an if and only if operator in STATA? I very often wa…
Stratified sample using one stratum.Hi! I am doing a study about schools in different municipalities and are trying to do a stratified s…
mnPS command to use twang with stata for multiple treatmentsI'd like to estimate propensity scores for multiple treatments and try to use the mnps command in St…
Generating mean variable by subgroupDear all, Im currently working with a panel datatset covering automation risk on occupational- and …
Subscribe to:
Post Comments (Atom)
0 Response to Combining multiple variables
Post a Comment