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
Replacing variable values using data from other rows within clusterHi (Apologies for the clumsy title, I couldn't think of a better description) I am working with a …
Categorizing likert-scaleHallo fellow stata users? its my first encounter with stata for my master's project analysis. Am loo…
Power Calculations for 3 arm clustered randomised trialHi everyone, I need to do power calculations for a 3 arm trial (to determine minimum detectable effe…
ModellingHae guys,do i have to do multivariate modelling if all my bivariates odds ratios are not significant…
Variable lag based on other variable.At the moment I am trying to calculate returns however I am attempting to calculate annual returns b…
Subscribe to:
Post Comments (Atom)
0 Response to How to replace missing values for certain rows in STATA
Post a Comment