halton: Halton Sequences

View source: R/halton.R

haltonR Documentation

Halton Sequences

Description

Halton Sequences

Usage

halton(
  draw,
  dim,
  prime = NULL,
  scramble = F,
  randomise = F,
  normal = F,
  discard = NULL
)

Arguments

draw

Number of draws for the sequence

dim

Number of dimensions to draw

prime

If NULL, the function will use prime numbers in ascending order. If specified, should be an atomic vector of length dim containing prime numbers to be used for each dimension.

scramble

If TRUE, randomly permute the sequences

randomise

If TRUE, randomise each draw

normal

If TRUE, convert the sequence to a standard normal distribution

discard

If provided, simulate an extra number of draws and discard the first few. For example, if 10, draw + 10 draws will be drawn, and the first 10 discarded.

References

\insertRef

bhat2003rngbox

\insertRef

train2003rngbox

\insertRef

okten2012rngbox


philswatton/rngbox documentation built on May 10, 2022, 12:39 a.m.