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?
Creating new variables using the subset of an existing variableHello, I am pretty new user of Stata. I would like to create new variables by using the subset of a…
Difference in proportions between two samplesHello, I have a question about proportions. How do I check for difference in proportions between tw…
Generating Quaterly Data, Format RangeDear All, I would like to set a time series quaterly data from 1995q1 to 2019q4: (Here is my code)…
Dropping overlapping eventsI am conducting an event study for my study, the effect of football transfers on stock prices. The p…
Cluster firms based on wage distribution on panel dataHi. I want to create 15 groups of firms based on their wage distribution. I have a 10-year long mont…
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