montePop-class: Class '"montePop"'

Description Objects from the Class Slots Methods Author(s) References See Also Examples

Description

Holds a population object with its calculated parameters for use in Monte Carlo repeated sampling experiments.

Objects from the Class

Objects can be created by calls of the form new("montePop", ...). However, it is probably better, and certainly easier, to use the constructor method montePop to create objects.

Slots

mean:

Object of class "numeric": The population mean.

var:

Object of class "numeric": The population variance.

stDev:

Object of class "numeric": The population standard deviation

N:

Object of class "numeric": The size of the population.

total:

Object of class "numeric": The population total.

popVals:

Object of class "numeric": The individual population values.

zeroTruncated:

Object of class "logical": TRUE: The population is zero-truncated; FALSE otherwise. This is used specifically with "sampSurf" objects.

n:

Object of class "numeric": The desired sample sizes for calculation of the following three slots. Note that this and the following slots can be NA if this sample size-based information is not desired.

fpc:

Object of class "numeric": The finite population correction for each sample size, or NA.

varMean:

Object of class "numeric": The variance of the mean for the population at each sample size, or NA.

stErr:

Object of class "numeric": The population standard error of the mean for each sample size, or NA.

description:

Object of class "character": a description of the population if desired.

Methods

hist

signature(x = "montePop"): population histogram

monteBSSample

signature(population = "montePop"): Bootstrap sampling from the population.

monteNTSample

signature(population = "montePop"): Normal threory (simple random) sampling from the population.

show

signature(object = "montePop"): the population.

summary

signature(object = "montePop"): of the population.

Author(s)

Jeffrey H. Gove

References

The ‘“monte”: When is n Sufficiently Large?’ vignette.

See Also

monte, monteSample

Examples

1
showClass("montePop")

sampSurf documentation built on March 5, 2021, 3:01 p.m.