Differences between revisions 1 and 2
Revision 1 as of 2023-06-13 23:02:24
Size: 4406
Comment:
Revision 2 as of 2025-10-24 17:39:52
Size: 595
Comment: Rewrite
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

'''`-set-`''' sets system parameters.
Line 11: Line 13:


=== Adosize ===
||'''Name'''||'''Meaning'' ||'''Default''' ||'''Domain''' ||
||`rng` ||random number generation algorithm||`default` aliased to `mt64`||`default`, `kiss32`, `mt64`, `mt64s`||
||`seed` ||rng seed valie || ||positive integers ||
Line 19: Line 21:
=== Autotabgraphs ===

----



=== Cformat ===

----



=== Clevel ===

----



=== Coeftabresults ===

----



=== Collect_double ===

----



=== Collect_label ===

----



=== Collect_style ===

----



=== Collect_warn ===

----



=== Conren ===

----



=== Copycolor ===

----



=== Dockable ===

----



=== Docx_hardbreak ===

----



=== Docx_paramode ===

----



=== Dots ===

----



=== Fastscroll ===

----



=== Floatwindows ===

----



=== Fredkey ===

----



=== Fvbase ===

----



=== Fvlabel ===

----



=== Fvtrack ===

----



=== Fvwrap ===

----



=== Fvwrapon ===

----



=== Graphics ===

----



=== Haverdir ===

----



=== Httpproxy ===

----



=== Httpproxyauth ===

----



=== Httpproxyhost ===

----



=== Httpproxyport ===

----



=== Httpproxypw ===

----



=== Httpproxyuser ===

----



=== Include_bitmap ===

----



=== Iterlog ===

----



=== Java_heapmax ===

----



=== Java_home ===

----



=== Lapack_mkl ===

----



=== Lapack_mkl_cnr ===

----



=== Level ===

----



=== Linegap ===

----



=== Linesize ===

----



=== Locale_functions ===

----



=== Locale_ui ===

----



=== Locksplitters ===

----



=== Logmsg ===

----



=== Logtype ===

----



=== Lstretch ===

----



=== Matacache ===

----



=== Matafavor ===

----



=== Matalibs ===

----



=== Matalnum ===

----



=== Matamofirst ===

----



=== Mataoptimize ===

----



=== Matasolvetol ===

----



=== Matastrict ===

----



=== Maxbezierpath ===

----



=== Maxdb ===

----



=== Maxiter ===

----



=== Max_memory ===

----



=== Max_preservemem ===

----



=== Maxvar ===

----



=== Min_memory ===

----



=== More ===

----



=== Niceness ===

----



=== Notifyuser ===

----



=== Obs ===

----



=== Odbcdriver ===

----



=== Odbcmgr ===

----



=== Output ===

----



=== Pagesize ===

----



=== Pformat ===

----



=== Pinnable ===

----



=== Playsnd ===

----



=== Printcolor ===

----



=== Processors ===

----



=== Python_exec ===

----



=== Python_userpath ===

----



=== Reventries ===

----



=== Revkeyboard ===

----



=== Rmsg ===

----



=== Rng ===

To use an alternate random number generation algorithm, set the rng value to something other than `default`.

{{{
set rng default
}}}

Possible values include...

 * `mt64` (64-bit Mersenne Twister)
 * `mt64s` (stream algorithm based on the 64-bit Mersenne Twister)
 * `kiss32` (32-bit keep it simple stupid)

In Stata 14, the default flipped from `kiss32` to `mt64`.

----



=== Rngstate ===

----



=== Rngstream ===

----



=== Scheme ===

----



=== Scrollbufsize ===

----



=== Searchdefault ===

----



=== Seed ===

To make random number generation reproducible, set a seed value.

{{{
set seed 42
}}}

A seed value must be an integer, non-negative, and no greater than 2^31^ − 1.

----



=== Segmentsize ===

----



=== Sformat ===

----



=== Showbaselevels ===

----



=== Showemptycells ===

----



=== Showomitted ===

----



=== Smoothfonts ===

----



=== Sortmethod ===

----



=== Sortrngstate ===

----



=== Table_style ===

----



=== Taskbargroups ===

----



=== Trace ===

----



=== Tracedepth ===

----



=== Traceexpand ===

----



=== Tracehilite ===

----



=== Traceindent ===

----



=== Tracenumber ===

----



=== Tracesep ===

----



=== Type ===

----



=== Update_interval ===

----



=== Update_prompt ===

----



=== Update_query ===

----



=== Varabbrev ===

----



=== Varkeyboard ===

----



Line 692: Line 23:
[[https://www.stata.com/manuals/rset.pdf|Stata manual for set]] [[https://www.stata.com/manuals/rset.pdf|Stata manual for -set-]]

Stata Set

-set- sets system parameters.


Usage

Name

Meaning

Default

Domain

rng

random number generation algorithm

default aliased to mt64

default, kiss32, mt64, mt64s

seed

rng seed valie

positive integers


See also

Stata manual for -set-


CategoryRicottone

Stata/Set (last edited 2025-10-24 17:39:52 by DominicRicottone)