generateSimuleesByNormal: Return a generator function that will generate one simulee...

Description Usage Arguments Value Examples

Description

Return a generator function that will generate one simulee each time it is called. The true theta of the generated simulees will follow a normal distribution. Once the specified number of simulees has been reached, no more simulees will be generated.

Usage

1
2
3
4
5
6
7
8
generateSimuleesByNormal(
  numSimulees,
  mean = 0,
  sd = 1,
  randomSeeds = NULL,
  min_value = -Inf,
  max_value = Inf
)

Arguments

numSimulees

The number of simulees that should be generated.

mean

The mean of the true theta for the generated simulees.

sd

The standard deviation of the true theta for the generated simulees.

randomSeeds

A vector of integers. The source of random seeds for each simulee.

Value

A generator function that will generate one simulee each time it is called.

Examples

1
  simulees = generateSimuleesByNormal(numSimulees = 5, mean = 0.5, sd = 1.2, randomSeeds = 10001:10003)

yuehmeir2/CATSimulator documentation built on June 13, 2021, 7:02 p.m.