I have string variables asset1-asset25. For each variable, I want to change NA to missing values
This code does not work:
foreach `v' of varlist asset* {
replace `v' = "" if `v' == "NA"
}
Thank you!
Related Posts with Replacing values in multiple string variable
Compare permute to ttestDear all, maybe this is a silly question but I cannot spot the error. Basically, I can compare 2 sam…
Which test is better to use with categorical variables?Good afternoon! I regress the model: GDP = β0 + β1ERR1 + β2ERR2 + ơ1Pop+ ơ2Surf + ơ3ExGS + ơ4ExpEd…
Endogeneity check in Panel data (FE/RE)Dear all, I am working with Panel data (FE and RE models) and performing several diagnostic tests a…
How to turn off scientific notation for estat ic/est stats to avoid identical AIC results?Hi, I'm in need of advice of how to turn off scientific notation for estat ic/est stats. I have chan…
Out-of-sample R^2I am struggling to compute my out-of-sample results for R^2os. This is out-of-sample R^2 as done by …
Subscribe to:
Post Comments (Atom)
0 Response to Replacing values in multiple string variable
Post a Comment