get_data.multisimsum: get_data.multisimsum

Description Usage Arguments Value See Also Examples

View source: R/get_data.multisimsum.R

Description

Extract data from a multisimsum object

Usage

1
2
## S3 method for class 'multisimsum'
get_data(x, sstat = "all", description = FALSE, ...)

Arguments

x

An object of class multisimsum.

sstat

Summary statistics to include; can be a scalar value or a vector. Possible choices are:

  • all, all the summary statistics are returned This is the default option.

  • nsim, the number of replications with non-missing point estimates and standard error.

  • thetamean, average point estimate.

  • thetamedian, median point estimate.

  • se2mean, average standard error.

  • se2median, median standard error.

  • bias, bias in point estimate.

  • empse, empirical standard error.

  • mse, mean squared error.

  • relprec, percentage gain in precision relative to the reference method.

  • modelse, model-based standard error.

  • relerror, relative percentage error in standard error.

  • cover, coverage of a nominal level% confidence interval.

  • bccover, bias corrected coverage of a nominal level% confidence interval.

  • power, power of a (1 - level)% level test.#'

description

Append a column to the returned data.frame with a description of each summary statistic? Defaults to FALSE.

...

Ignored.

Value

A data.frame containing summary statistics from a simulation study.

See Also

multisimsum(), get_data()

Examples

1
2
3
4
5
6
data(frailty)
ms <- multisimsum(data = frailty, par = "par", true = c(trt = -0.50,
   fv = 0.75), estvarname = "b", se = "se", methodvar = "model",
   by = "fv_dist")
get_data(ms)
get_data(ms, description = TRUE)

rsimsum documentation built on June 21, 2018, 5:04 p.m.