Learn R Programming

sampSurf (version 0.7-6)

monteBSSample-methods: Methods for Function monteBSSample in Package sampSurf

Description

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

Arguments

Methods

signature(population = "montePop")

This method works with an object of class "'>montePop" as the signature argument.

usage…

monteBSSample(population,
              n = c(10),
              mcSamples = 100,
              R = 100,
              alpha = 0.05, 
              replace = TRUE,
              startSeed = NA,
              runQuiet = TRUE,
              ... )

  • population: An object of class "'>montePop" containing the population values.

  • n: A vector of sample sizes that will be used to draw mcSamples Monte Carlo samples from the population.

  • mcSamples: A scalar specifying the number of Monte Carlo samples to draw from the population of sizes n.

  • R: A scalar specifying the number of bootstrap sample replicates to draw.

  • alpha: The two-tailed alpha level for confidence interval calculation. I.e., for the 95% confidence level, specify alpha=0.05.

  • replace: TRUE: sample with replacement; FALSE: sample without replacement. This is for the drawing of the mcSamples samples of sizes n, note for the bootstrap replicates, which are always drawn from the samples with replacement.

  • startSeed: A scalar specifying a random number seed for the Monte Carlo draws. See initRandomSeed for details.

  • runQuiet: TRUE: no feedback; FALSE: feedback if available.

  • ... : Other arguments to be passed along to sample.

%item