Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ieboilstart] add set type #280

Closed
kbjarkefur opened this issue Aug 4, 2022 · 1 comment
Closed

[ieboilstart] add set type #280

kbjarkefur opened this issue Aug 4, 2022 · 1 comment
Assignees
Labels
enhancement A new feature to be added to command resolved but not yet published Issue is fixed, but not yet published on SSC

Comments

@kbjarkefur
Copy link
Contributor

kbjarkefur commented Aug 4, 2022

Default var type

You can have different default values for when creating numeric vars. This actually can make a difference when generating random numbers as if the type is set to float you get more precision with more decimals on your random number. With iesave this should not lead to inefficiencies in disk space with storing data.
set type float, permanently

Default random number generator

Include set rng default to make sure the default RNG mt64 is used.

@kbjarkefur kbjarkefur added the enhancement A new feature to be added to command label Aug 4, 2022
@kbjarkefur kbjarkefur self-assigned this Aug 4, 2022
@kbjarkefur kbjarkefur changed the title [ieboilstart] set the RNG to the default [ieboilstart] add some more standardizing settings Aug 4, 2022
@kbjarkefur
Copy link
Contributor Author

Actually when testing, the scope of set rng is:

The scope of set rng is the Stata session, do-file, or program in which rng is set.

Same as version. So to have this make any difference the command needs to return the setting to be run outside the command. Like how the command handles version. I think that is overkill for set rng as the scope is also Stata session. This mean that if anyone change the default for a session it is set back to the default the next time Stata is opened. So it will only be used where it is intentional.

@kbjarkefur kbjarkefur changed the title [ieboilstart] add some more standardizing settings [ieboilstart] add set type Aug 4, 2022
@kbjarkefur kbjarkefur added the resolved but not yet published Issue is fixed, but not yet published on SSC label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature to be added to command resolved but not yet published Issue is fixed, but not yet published on SSC
Projects
None yet
Development

No branches or pull requests

1 participant