I'm wondering how to replace missing values in STATA for certain rows only (as noted above).
I have a long column with 842 cells. The first 160 should be 1, and the rest should be 0. However, I have missing values scattered throughout 1-842. How can I replace the missing values in 1:160 with 1, and the missing values in 161:842 with 0?
Related Posts with How to replace missing values for certain rows in STATA
Technical Issues with STATAI want to know if anyone is having the same problem as I do. Every time I paste my data on STATA, it…
How to do a graph like this one in StataDear Statalist, I am trying do replicate (with my own data) a graph like the one I show below. As y…
Regressing on two years backHi all, until now I have estimated intercepts and coefficients "asking" STATA to do it for each diff…
New package: simulate2 and psimulate2Thanks to Kit Baum a new package is available on SSC. simulate2 and psimulate2 enhance and parallali…
Significant interaction term in fixed effects modelDear all, I am currently running linear fixed effects regression models (xtreg, fe vce(cluster id)) …
Subscribe to:
Post Comments (Atom)
0 Response to How to replace missing values for certain rows in STATA
Post a Comment