Hi all,
I was wondeirng if there is a quick way to replace the values that stata assigns to variables with their actual variables? For example in the attachment below, how can I change the value of 45 from 197 to 45, and then the same for the other values. Likewise, I would like to change "Yes" and "No" to 2 and 1 respectively.
Thanks
Array
Related Posts with Replacing variable values with actual values stata in edit
Generating data to balance a panel datasetHi, I have a panel from Compustat like the below in Table 1 (table 1 is a subset of the data to sho…
Getting different results from running same exact code - why?I am dropping observations based on various if statements written in a do file. I have all the code …
Inconsistency of data in national surveyGood morning, sorry I am dealing with a topic of inconsistency of data generated by me with those ge…
Extract Year from Date (11985 - 122018)Hello, I am working with the BRFS data. I am interested in using a variable - Recent HIV testing. …
Use e(selected0) of Lasso Regression in another regressionHello, I ran a Lasso Regression and found the best regressors: rlasso a b c d e f Assume b c d ar…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing variable values with actual values stata in edit
Post a Comment