I'm super new to using Stata and could really use some help! I have imported a csv file from R into Stata and am not sure if there is a succinct way for replacing all the NA values with missing. I have tried: replace 'var'= "." if 'var'== "NA" ....... However, I have 700 variables (many of which are string) so doing this one by one is taking way too long. Is there a better way to do this? Thank you in advance!!
Related Posts with Replacing "NA" with missing
[Panel] Preceding observations with values lower than that of the current observationHi, I am using panel data with the following structure: a single task (Task_id, also the panel id) …
Variable splittingI admit that the split syntax has been explained severally but I don't seem to get an answer that ca…
Shrinkage of estimates towards group mean using Mixed Effects Models for a binary outcomeHello Statalist, I have survey data that collected individual level use of a bed net against mosqu…
Using xtivreg2 for Simultaneous Equation model with fixed effectsHi, I am using a simultaneous equations model with fixed effects estimation procedure. I was using x…
Instrumented diff-in-diff with ivreg2Dear Statalist, I am struggling with an endogenous treatment in a diff-in-diff model I am using (at…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing "NA" with missing
Post a Comment