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
Remove variable labels from all variable at onceHow to remove variable labels from all variable at once? Or duplicate variable names to variable lab…
Horizontal bar graph with SDDear Stata users, I am wondering, is there anyway to create horizontal bar graph with SD using -ser…
OT: Analyzing ordinal data with metric modelsRonán Conroy alerted me to this article in another discussion forum. Some members of this group may …
Weighted Sum of Regression CoefficientsHi, I have conducted 6 different regressions. The resulting coefficients for the variables Pre4, Pr…
Correlation matrix with dummy variablesDear statalisters, I aim to test my data for multicollinearity, first using a correlation matrix. H…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing "NA" with missing
Post a Comment