I am using encode to convert a variable from string to numeric type so that I can use it in a regression. Since the variable only contains numeric values (though its type is a string) hene I want to assign the same labels as values. For example, my variable name is Mathematics and it has values 80,90,100. When I will encode, the stata will assign a different value to these numbers. I want to assign the same values to my variable 1.e the value for label 80,90 should be 80, 90 respectively and so on.
Can someone help how to do that?
Related Posts with Assigning labels as variable values
regress to rangestat or rangerunHi all, I am trying to run below regression by intervals and years on the whole sample with rangest…
Estpost for summary statistics with complex design survey dataHi , I am working on quarterly Labor Force Survey from 2008 to 2010 . I would like to create a tabl…
Metaprop meta analysis, Variance of the synthesized proportion.Hi All, I am using metaprop to meta-analyse proportions from 8 studies using a random effects appro…
Estpost for summary statistics with complex design survey dataHi , I am working on quarterly Labor Force Survey from 2008 to 2010 . I would like to create a tabl…
Predict residual error after oprobit regressionHello, We are trying to generate the residuals after running an oprobit regression. Our dataset cons…
Subscribe to:
Post Comments (Atom)
0 Response to Assigning labels as variable values
Post a Comment