Hi! I am new to STATA and I am trying to recode a variable with 40 values. For values 1 to 38, i want to keep their original codes so Im effectively just recoding 39 and 40. Is there a syntax to code 1 to 38 so that they keep their original values instead of having to type recode var (1=1) (2=2) (3=3)...?
Thanks
Related Posts with Tip with recoding 40+ values in a variable
pwcompare does not generate letters for the groupHi, I am running the mlogit model and using the pwcomapre would like to compare the margins. The out…
Modified Herfindahl–Hirschman (MHHI) Calculation*Dear all, I am new to STATA and tried to calculate a measure that captures the ownership concentrat…
Need Help With 3 level model with interactions ( - mixed- using Stata 15) I am working on a research project that predicts that country-level variables will predict individu…
gmm estimate parametersI have drawn a random bivariate normal distribution. matrix m1 = (1,0) matrix c1 = (41, -22 \ -22, …
How to run firm and industry*year fixed effects with reghdfe?In my dataset, TYPE2, INDC32, region2, and yr stand for firms, industry,region, and time. Normally, …
Subscribe to:
Post Comments (Atom)
0 Response to Tip with recoding 40+ values in a variable
Post a Comment