get_data {rsimsum} | R Documentation |
get_data
Description
Extract data slots from an object of class simsum
, summary.simsum
, multisimsum
, or summary.multisimsum
.
Usage
get_data(x, stats = NULL, ...)
Arguments
x |
An object of class |
stats |
Summary statistics to include; can be a scalar value or a vector. Possible choices are:
|
... |
Ignored. |
Value
A data.frame
containing summary statistics from a simulation study.
Examples
data(MIsim)
x <- simsum(
data = MIsim, estvarname = "b", true = 0.5, se = "se",
methodvar = "method"
)
get_data(x)
# Extracting only bias and coverage:
get_data(x, stats = c("bias", "cover"))
xs <- summary(x)
get_data(xs)