print.summary.simsum: print.summary.simsum

Description Usage Arguments Note Examples

View source: R/print.summary.simsum.R

Description

Print method for summary.simsum objects

Usage

1
2
## S3 method for class 'summary.simsum'
print(x, digits = 4, sstat = "all", ...)

Arguments

x

An object of class summary.simsum.

digits

Number of significant digits used for printing. Defaults to 4.

sstat

Summary statistics to print; can be a scalar value or a vector (for printing multiple summary statistics at once). Possible choices are:

  • all, all the summary statistics are printed. 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.

...

Ignored.

Note

If sstat is a vector that contains all, all summary statistics are printed by default.

Examples

1
2
3
4
5
6
7
8
data("MIsim")
x <- simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se",
            methodvar = "method", mcse = TRUE)
xs <- summary(x)
xs

# Printing only bias and coverage:
print(xs, sstat = c("bias", "cover"))

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