Yesterday I realized that I have to set type to double before doing "gen" for large numeric variable. If I didn't realize this and published my research, it would have been really damaging.
Because research accuracy is the absolutely priority, I am now doing
set type double, permanently
for my codes.
But this will make my data to become too big, which is already too big. If there a command (as an alternative to gen and egen) that will save as double if the numeric is larger than, say, 5 digits?
Related Posts with Is there an alternative to gen and egen that will save as double if the number is large?
Proof of parallel trends in Difference in Difference using a leads and lags regression?Dear Statalist users, I need to prove that the treatment group and the control group follow similar…
Robustness CheckHi, For my project, I've just been running simple OLS regressions. I was wondering if there was any…
multicollinearity in panel datai am working on a panel data of 144 countries for 16 years. In order to check for multicollinearity,…
Imputing variables for pairwise matrixDear Stata list, I'm having trouble registering my imputed variables, for a pairwise analysis; my u…
Generate dummy variable attributed to all observations of an ID if one of the observations meets criteriaHi, I haven't had much experience using Stata and was wondering whether one could generate a dummy v…
Subscribe to:
Post Comments (Atom)
0 Response to Is there an alternative to gen and egen that will save as double if the number is large?
Post a Comment