Hi everyone,
Im trying to code negative values in my dataset as missing values.i want to do this across all the variables. The condition of re coding negative values as (.) is also same across all the variables.
e.g:
replace var1 = . if var1 < 0
I would want it to do for multiple variables at once.
Any help with this would be really appreciated.
Thanks
Related Posts with Coding Missing Values for a large set of variables
factor variables may not contain noninteger valuesHi, I am trying to run the following regression: reg logchildwage logheadwage POOR age NPERSONS URB…
Treatment and Period omitted because of collinearity (DiD)Dear Statalist Community, I am hopeful that you help me on this one as you did before. I have a mis…
re-arrange dataHi, I have this type of table in Stata: industry_id period_1 period_2 sales_1 sales_2 11 1 0 10…
AREG - Different resultsDear all, I just launch several estimations using areg command on stata. I'm surprise since I launc…
margins after ereturn post with -npregress-I am running a nonparametric kernel regression where the dependent variable is transformed using the…
Subscribe to:
Post Comments (Atom)
0 Response to Coding Missing Values for a large set of variables
Post a Comment