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
Creating new IDs with a set number of observationsHello all, I am trying to run a simulation on a dataset that contains user reviews. I have a select…
Flag individuals who have repeated a grade in schoolHi statalist, Please consider the following example data: Code: * Example generated by -dataex-. T…
Histograms in loopHello Sir Have some issues with including titles in histograms in a loop. The code is running but n…
Linking person-year records across different people (using NLSY97)Aloha, I am using the NLSY97 and doing a project where I need to link siblings within the data. I ha…
Combining exact and propensity score matchingHi all, Would appreciate help with matching on propensity score within bins. I have either: Code…
Subscribe to:
Post Comments (Atom)
0 Response to Making a new variable along parameters of other variables
Post a Comment