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
Store result from calculation to a matrix?Hi all! I'm trying to compute the jackknife variance estimate using the formula from Hansen's "Econo…
How to implement -xtdpdml- with interaction terms?Hi Statalist, In my paper I validate a theoretical proposition through the following FE regression:…
How to save a matrix into stata data.Hello, I have the following dataset and I am using fect to estimate the ATT via interactive fixed ef…
FEM categorial variable outputHello, In my fixed effect model with the effect of parenting styles (categorial) on problemativ beh…
How to capture the results of lookfor_all to local files?Hi, I am searching for (lookfor_all from ssc) all datasets in a directory that contain the target v…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing values in multiple string variable
Post a Comment