Hello all,
I am generating a scoring for a few parameters and I have the raw numbers to generate a scoring. I was the scoring to be in the same variable... Let me explain:
Ideally my new variable would be "Smoking Score" and a 0 is assigned to the values that are equal to 1 in my "smoken" variable. 1 is assigned to those who are "smokev == 1" AND "smoken == 0". Lastly, 2 would be assigned to those with "smoken == 0" and "smokev == 0"
So I am creating a variable that has scoring properties from TWO different variables. If you are an R user, is this easier in R? I hate moving my dataset back and forth and want to see if this is possible in STATA.
Related Posts with Making a new variable along parameters of other variables
How does the option"ties" work in psmatch2?Hello: It says in the user's manual : ties not only match nearest neighbor but also other controls w…
Help to get rolling average (standard deviation) over 5 yearsHello, I have a panel data like this (unbalanced) ID Year V1 V2 0 2005 30 19 0 2006 20 67 0 2007 4…
Structural equation modeling: Whether and how to estimate margins w.r.t. a latent variableI’d like to get input from the Stata community on the advisability and potential utility of estimati…
Share of working hours by a segment of race comparing to the total raceHello everyone, I'm working with basic monthly sample of CPS and I'd like to calculate for each occ…
Should I use vce(robust) for my OLS regression?Hi everyone, this is my first time posting, so I hope that I include all the relevant information. I…
Subscribe to:
Post Comments (Atom)
0 Response to Making a new variable along parameters of other variables
Post a Comment