Learn R Programming

RaschSampler (version 0.8-10)

rsctrl: Controls for the Sampling Function

Description

Various parameters that control aspects of the random generation of binary matrices.

Usage

rsctrl(burn_in = 100, n_eff = 100, step = 16, seed = 0, tfixed = FALSE)

Value

A list of class RSctr with components

burn_in, n_eff, step,

seed, tfixed.,

Arguments

burn_in

the number of sampled matrices to come close to a stationary distribution. The default is burn_in = 100. (The actual number is 2 * burn_in * step.)

n_eff

the number of effective matrices, i.e., the number of matrices to be generated by the sampling function rsampler. n_eff must be positive and not larger than 8191 (2\(\mbox{\textasciicircum}\)13-1). The default is n_eff = 100.

step

controls the number number of void matrices generated in the the burn in process and when effective matrices are generated (see note below). The default is step = 16.

seed

is the indicator for the seed of the random number generator. Its value must be in the range 0 and 2147483646 (2**31-2). If the value of seed equals zero, a seed is generated by the sampling function rsampler (dependent on the system's clock) and its value is returned in the output. If seed is not equal to zero, its value is used as the seed of the random number generator. In that case its value is unaltered at output. The default is seed = 0.

tfixed

logical, -- specifies if in case of a quadratic input matrix the diagonal is considered fixed (see note below). The default is tfixed = FALSE.

See Also

rsampler

Examples

Run this code
ctr <- rsctrl(n_eff = 1, seed = 987654321)  # specify new controls
summary(ctr)

if (FALSE) {
ctr2 <- rsctrl(step = -3, n_eff = 10000) # incorrect specifications
}

Run the code above in your browser using DataLab