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
Benchmarking Stata to Test Speed Across Computers and VersionsAfter helping my son upgrade his gaming machine, I decided it was time to upgrade my 8-year old desk…
Saving multiple Excel files as Stata filesIn "C:\Users\budug\OneDrive\Documents\School\Projects ", I have a few Excel files, namely data_2004,…
Likert normalizationHi - I'm helping my son with his science fair project. He did placebo taste testing where he has so…
Shaded area xtline graphDear Statalisters, Currently I am working on a panel dataset where my probit model predicts either …
Piecewise Regression with a median as a knotDear Stata Users My data is in panle format (firm, time). I need to estimate piesewise linear regre…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing "NA" with missing
Post a Comment