Hello
What is wrong with my code please to replace my 0 by something meaning NA ? :
replace namevariable = NA if namevariable==0
or
replace namevariable = "" if namevariable==0
Thanks a lot for your help
Related Posts with Replace O by NA
Dynamic ML model code syntax error for simulation of maximum likelihoodHello, could someone help me identify what is the problem with this code I tweaked to simulate maxim…
Am I using the correct code for running the models separately for each industry?Hi all, I have an unbalanced panel data, 11 industries and 21 years. After doing the main regressi…
Panel Data: Table with ranks of medians over groupsHi together, i use stata 16.0 and have a panel dataset with monthly average temperature (tavg) from…
Calculation of RCA (Revealed Comparative Advantage)Dear Statalist, I am trying to calculate RCA(Revealed Comparative Advantage) to use in my thesis. I…
different results using stata14 and stata15Hi all I'm running a pool OLS regression with the command as follows. xi: reg lnnumber_d_w post soe …
Subscribe to:
Post Comments (Atom)
0 Response to Replace O by NA
Post a Comment