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
Checking package consistencyDear All, when a user-written package is added to Stata with Code: net from SOMEURL net install SO…
Help with pcspike to display a paired plot with namesI am using Nick Cox's example code to produce a 'paired plot with names' as in Dr. Cox's "Speaking S…
Coding variables with options "Yes" "No" and "Other"Hello all, I have what I believe should be a pretty simple problem but I'm getting tripped up, most…
melogit, xtmelogit, meglm with Bernoulli family to include survey weights in the modelDear colleagues, Does any one come across with an aides on how to include a survey weight into the …
Regression Discontinuity - manipulation test applying fweights problemDear Stata Users, I am trying to test for sorting of individuals across the threshold in an RD sett…
Subscribe to:
Post Comments (Atom)
0 Response to Making a new variable along parameters of other variables
Post a Comment