monte-methods {sampSurf}R Documentation

Methods for "monte" Object Construction in Package sampSurf

Description

The following methods for generic function monte will construct valid objects of class "monte". Please see the ‘“monte”: When is n Sufficiently Large?’ vignette for more details and examples.

Methods

Please note that each constructor has the same argument list, so it is only stated once below for the first constructor. The signature argument in each case specifies the population from which samples should be drawn.

signature(object = "montePop")

This constructor method is only for use with objects of class "montePop". Ultimately, this constructor is called by all the others.

usage...

monte(object,
      zeroTruncate = TRUE,
      n = object@n,
      mcSamples = 100,
      type = c('both', 'normalTheory', 'bootstrap'),
      R = 100, 
      alpha = 0.05, 
      description = 'Monte Carlo Object',
      replace = TRUE,
      startSeed = NA,
      runQuiet = TRUE,
      ... )
signature(object = "numeric")

This constructor method is only for use with objects of class "numeric"; i.e., a numeric vector.

usage...

monte(object,
      zeroTruncate = TRUE,
      n = c(10),
      mcSamples = 100,
      type = c('both', 'normalTheory', 'bootstrap'),
      R = 100, 
      alpha = 0.05, 
      description = 'Monte Carlo Object',
      replace = TRUE,
      startSeed = NA,
      runQuiet = TRUE,
      ... )
signature(object = "sampSurf")

This constructor method is only for use with objects of class "sampSurf". The population will be extracted from the cell values in the object.

usage...

monte(object,
      zeroTruncate = TRUE,
      n = c(10),
      mcSamples = 100,
      type = c('both', 'normalTheory', 'bootstrap'),
      R = 100, 
      alpha = 0.05, 
      description = 'Monte Carlo Object',
      replace = TRUE,
      startSeed = NA,
      runQuiet = TRUE,
      ... )

[Package sampSurf version 0.7-4 Index]