tidy.simsum | R Documentation |
Extract a tidy dataset with results from an object of class simsum
, summary.simsum
, multisimsum
, or summary.multisimsum
.
## S3 method for class 'simsum'
tidy(x, stats = NULL, ...)
## S3 method for class 'summary.simsum'
tidy(x, stats = NULL, ...)
## S3 method for class 'multisimsum'
tidy(x, stats = NULL, ...)
## S3 method for class 'summary.multisimsum'
tidy(x, stats = NULL, ...)
x |
An object of class |
stats |
Summary statistics to include; can be a scalar value or a vector. Possible choices are:
|
... |
Ignored. |
A data.frame
containing summary statistics from a simulation study.
data(MIsim)
x <- simsum(
data = MIsim, estvarname = "b", true = 0.5, se = "se",
methodvar = "method"
)
tidy(x)
# Extracting only bias and coverage:
tidy(x, stats = c("bias", "cover"))
xs <- summary(x)
tidy(xs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.