SampleSetup-class {simFrame}R Documentation

Class "SampleSetup"

Description

Class for set up samples.

Objects from the Class

Objects can be created by calls of the form new("SampleSetup", ...) or SampleSetup(...).

Slots

indices:
Object of class "list"; each list element contains the indices of the sampled observations.
prob:
Object of class "numeric" giving the inclusion probabilities.
design:
Object of class "character" giving the variables (columns) defining the strata of the sample design.
group:
Object of class "character" giving the variable (column) used for sampling whole groups rather than individual observations.
method:
Object of class "function" used for sampling.
call:
Object of class "SimCall"; the function call used to set up the samples, or NULL.

Methods

clusterRunSimulation
signature(cl = "ANY", x = "data.frame", setup = "SampleSetup", nrep = "missing", control = "SimControl"): run a simulation experiment on a snow cluster.
draw
signature(x = "data.frame", setup = "SampleSetup"): draw a sample.
length
signature(x = "SampleSetup"): get the number of set up samples.
runSimulation
signature(x = "data.frame", setup = "SampleSetup", nrep = "missing", control = "SimControl"): run a simulation experiment.

Author(s)

Andreas Alfons, alfons@statistik.tuwien.ac.at

See Also

SampleControl, VirtualSampleControl, setup, draw

Examples

showClass("SampleSetup")

[Package simFrame version 0.1.1 Index]