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

This class contains the necessary structure for doing Monte Carlo sample size experiments under bootstrap sampling.

Objects can be created by calls of the form ```
new("monteBSSample",
...)
```

. However, it is preferable to use the constructor method of the
same name `monteBSSample`

to minimize problems with
potentially invalid objects.

`degenerate`

:Object of class

`"numeric"`

: It may happen that, especially for small*n*, some of the samples drawn from the population can be degenerate (all the same value). When this happens, all of the bootstrap resamples will also be degenerate, and confidence interval estimation is impossible since it is based on the distribution of the bootstrap sample means. This slot is a numeric vector with the number of degenerate samples for each sample size in the`n`

slot of the object.`R`

:Object of class

`"numeric"`

: The number of bootstrap sample replications.`means`

:Object of class

`"data.frame"`

: The data frame contains the overall bootstrap sample means for each of the`mcSamples`

by`length(n)`

samples drawn from the population. The overall bootstrap sample mean is defined here as the mean of the*R*individual (second-stage) bootstrap sample means for each case. Taking column means gives the overall mean for each of the sample sizes.`lowerCIs`

:Object of class

`"data.frame"`

: This is the lower “BCa” confidence interval endpoint for the*1-α/2*confidence level. It is calculated from the distribution of bootstrap sample means that is created in bootstrap sampling for each Monte Carlo sample and sample size,*n*.`upperCIs`

:Object of class

`"data.frame"`

: This is the upper “BCa” confidence interval endpoint for the*1-α/2*confidence level. It is calculated from the distribution of bootstrap sample means that is created in bootstrap sampling for each Monte Carlo sample and sample size,*n*.

Class `"monteSample"`

, directly.

Class `"monteBSSampleOrNULL"`

, directly.

- summary
`signature(object = "monteBSSample")`

: Object summary.

Jeffrey H. Gove

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

1 | ```
showClass("monteBSSample")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.