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
Monte Carlo Simulation with IV 2SLSHi, I'm working on a Monte Carlo simulation with an endogenous x, so that I need to do 2SLS in my l…
Malformed notes section with 'outreg2' tex output (caused by commas)I am using 'outreg2' to make latex outputs of several regressions. I want to add a lengthy note at t…
Computing st. deviations per yearHi all, For the firms in my sample, I need to calculate the volatility of earnings. However, I keep…
Weighting data with IPW and mlogitDear all, I intend to manually calculate inverse probability weights (IPW) in order to use them in …
gaps in paneldata - tsfill and _n-1Dear all, for my master's thesis I am running a panelanalysis. I used the reshape-command to transf…
Subscribe to:
Post Comments (Atom)
0 Response to How to replace missing values for certain rows in STATA
Post a Comment