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
Working on Nested LoopMy data is stored in a panel data format. I want to estimate the ARDL model that accommodates one st…
Legend for graphs with marker symbol invisibleHello, I am graphing a twoway dot, with two variables. I can´t seem to find a way to add a legend …
grc1leg; how to control legend text and marker sizeDear listers I would like to use the grc1leg to produce a figure, housing multiple plots but with on…
Combining observations into oneI´m working on a data which has registered repeated observations because there are some observations…
Calculating Standard Deviation with RangestatHey all, I have the following problem. I would like to calculate rolling standard deviation of the …
Subscribe to:
Post Comments (Atom)
0 Response to Assigning labels as variable values
Post a Comment