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
collect: rows and columns' name changed?I am trying to learn Stata's -collect- and to manipulate tables. I find the manipulating part hard. …
Adding linear time trends (dropped)Dear Statalist Users, I have the following data. This dataset is at city level. Plate=unique ident…
How to add fixed effect in sureg Stata?Hi everyone, I have a question about how to add fixed effect in sureg and I wonder if anyone of you…
Variance Covariance Matrix of Sureg in StataHi everyone, I have a question about how to display the variance-covariance matrix for the residual…
Why some global parameter is in { } while the others are not?Dear all, I'm helping my prof modify past code to adjust to the new dataset. It is my first time us…
Subscribe to:
Post Comments (Atom)
0 Response to Making a new variable along parameters of other variables
Post a Comment