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
Fixed effect vs Random EffectDear Statalist, I am running a two-way fixed effect model with IV estimation. I want to run a Hausm…
Data quality control check with CUMSUMHi all, I have a big data set and am trying to QC some variables such as blood pressure and cholest…
Omitted due to collinearity errorHi, I am running a panel regression and had an issue with collinearity. Can someone please give me i…
try to create code boxhow to write code: Code: mixed age || state: …
Hausman\Suest after mixedHi all, In my research i'm running a multilevel model. I used this syntax: Code: mixed sqrt_Rela…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing values in multiple string variable
Post a Comment