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
Problem exporting matrix from mata adoHi -- I've written a brief ado file to spit back characteristics of parametrized sinusoids (specific…
Robust estimators (vce robust) for fixed effects regression to correct for heteroskedasticity even though there is no serial correlation?Dear research community, After running several tests (including F-Test, Breusch and Pagan’s (1980) …
Visualising results from multiple regressions - problem with large coefficients (outlier)Dear all, I am currently struggeling with following problem: I want to display the average marginal…
Panel Data reshapeDear all, I have a quick question on how I could reshape my below data into the "long" format? The …
counting number of siblings using by and _nHi there, I'm working on a hierarchical dataset where individuals are nested within the household. …
Subscribe to:
Post Comments (Atom)
0 Response to Assigning labels as variable values
Post a Comment