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?
Regressions with Dummy VariablesArray Hi all, I am trying to replicate the following table. My code is as follows: foreach depende…
Exporting table of results of prtest for Two-sample test of proportions using VARIABLES NOT GROUPS !hello, everyone! I cannot find a way to export the results of prtest of a two-sample test of propor…
Comparing sub-categories of a categorical variable across two groupsHello. I am trying to create descriptive statistics across two groups (treatment and control) for a …
Append command changes the content of observations of the appended fileI have an issue with the append command. I have a couple of stata files that contain three variable…
Drop observations if they have equal values on variable A but different values dummy variable BHello everyone, I would like to drop all observations, that have the same value on variable product…
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