Methods for producing a summary of an object

Share:

Description

Produce a summary an object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## S4 method for signature 'SampleSetup'
summary(object)

## S4 method for signature 'SimControl'
summary(object)

## S4 method for signature 'SimResults'
summary(object, ...)

## S4 method for signature 'Strata'
summary(object)

## S4 method for signature 'VirtualContControl'
summary(object)

## S4 method for signature 'VirtualDataControl'
summary(object)

## S4 method for signature 'VirtualNAControl'
summary(object)

## S4 method for signature 'VirtualSampleControl'
summary(object)

Arguments

object

an object.

...

additional arguments to be passed down to methods.

Value

The form of the resulting object depends on the class of the argument object. See the “Methods” section below for details.

Methods

signature(x = "SampleSetup")

returns an object of class SummarySampleSetup, which contains information on the size of each of the set up samples.

signature(x = "SimControl")

currently returns the object itself.

signature(x = "SimResults")

produces a summary of the simulation results by calling the method of summary for the data.frame in slot values.

signature(x = "Strata")

returns a data.frame containing the size of each stratum.

signature(x = "VirtualContControl")

currently returns the object itself.

signature(x = "VirtualDataControl")

currently returns the object itself.

signature(x = "VirtualNAControl")

currently returns the object itself.

signature(x = "VirtualSampleControl")

currently returns the object itself.

Author(s)

Andreas Alfons

References

Alfons, A., Templ, M. and Filzmoser, P. (2010) An Object-Oriented Framework for Statistical Simulation: The R Package simFrame. Journal of Statistical Software, 37(3), 1–36. URL http://www.jstatsoft.org/v37/i03/.

See Also

summary, "SampleSetup", "SummarySampleSetup", "SimResults", "Strata"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## load data
data(eusilcP)

## class "SampleSetup"
# set up samples using group sampling
set <- setup(eusilcP, grouping = "hid", size = 1000, k = 50)
summary(set)

## class "Strata"
# set up samples using group sampling
strata <- stratify(eusilcP, "region")
summary(strata)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.