statable Statistics for study and research

Allocate by chance: random selection and allocation list

In brief

The tile draws a simple random sample from a list (numbers 1 to N or a pasted list with one ID per line) or distributes people to groups: with block randomisation (ratio of the groups, several block sizes, optionally separate by strata) or with fixed group sizes. Every list can be saved as CSV or copied.

A teaching tool, not a real study randomisation

The seed is visible. Anyone who knows it and the method can calculate the whole list in advance; there is no concealed allocation and no protocol. A real study needs an approved system, an independent person and the protocol of the institution. That is why every exported file begins with the line “Teaching tool - not for real studies (no concealment)”, the seed and the method.

Seed

The default is 20261008. The same seed and the same inputs give the same list; a different seed gives a different one. The seed never comes from the clock. With strata every stratum has a stream of its own (number of the stratum from 1): the list of a stratum does not change when another stratum becomes larger.

Blocks

Concealed mode: person by person

Selection from a list

The IDs are only displayed and never inserted into a command; the list stays in the browser. Duplicate IDs are not removed (otherwise a person would have a double chance) but reported; empty lines are skipped. Limits: at most one million lines of at most 200 characters each. A selection picks people, an allocation distributes them to groups; these are two different steps.

For specialists

Generator mulberry32 (32 bit) with mixed substreams from (seed, number). Shuffling after Fisher-Yates; the selection swaps only k places, so a million lines cost almost nothing. The methods are defined, not “correct” in comparison with a standard: another generator would give other lists. The properties are tested (every complete block balanced, difference at most half the block size, equal inclusion frequency, equal frequency of the six arrangements of a 1:1 block of size 4 for fixed seeds) as well as lists that were produced in the script with a rebuild of the generator in R.

Related

Open in Statable