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
Modifying the collapse option in the xtabond2 commandI am implementing system GMM using the xtabond2 command. The data series is very long. This long his…
mcaplot: only display one category of dichotomous variablesDear Statalist, I'm using Stata 14.2 for windows and the mca command (joint) to display relationshi…
Generate mean depending on variable specificationDear folks, I am currently working on a dataset that contains sales data of items in stores across …
ppml_panel_sg: RESET test (p-value)Hi, I am trying the RESET test (p-value) for a gravity model with fixed effects: (exporter-year, im…
time invariant variables in gravity modelDear all, I have read various literature which says that time invariant variables tend to be absorb…
Subscribe to:
Post Comments (Atom)
0 Response to How to replace missing values for certain rows in STATA
Post a Comment