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
replace missing values with values from another group / the mean of two groups↵ Dear, I am trying write a loop or program : - for var1 : replace the missing value (2012) by the…
Collapse command - data precisionHello, I am working with a dataset that contains dollar amounts that range from $0 to several milli…
OLOGIT Odds Regression doesn't include all the values for variable.Hello all, I attach screenshots below of two OLS regressions. The first one worked with no issues. …
Dfl (1996)Dear STATA users, I am trying to understand the computational aspect of DFL (1996) counterfactual d…
Problems with running fuzzy RDDear stata users: I have two questions related to running fuzzy rd in stata and hope someone can hel…
Subscribe to:
Post Comments (Atom)
0 Response to How to replace missing values for certain rows in STATA
Post a Comment