zip.multisimsum: zip method for multisimsum objects

Description Usage Arguments Value Examples

View source: R/zip.multisimsum.R

Description

zip() method for objects of class multisimsum.

Usage

1
2
## S3 method for class 'multisimsum'
zip(obj, par, wald.level = 0.95, gpars = list(), ...)

Arguments

obj

An object of class multisimsum.

par

Estimand to plot.

wald.level

Confidence level of the Wald test used to compute p-values for sorting each confidence interval. Defaults to 0.95.

gpars

Graphical parameters. Must be a named list, with possible parameters:

  • ci.alpha, alpha value of each individual confidence interval;

  • true.colour, colour of the vertical line at true value;

  • true.shape, shape of the vertical line at true value;

  • ci.colour, colour of the horizontal lines representing confidence intervals for estimated coverage based on Monte Carlo standard errors;

  • ci.shape, shape of the horizontal lines representing confidence intervals for estimated coverage based on Monte Carlo standard errors.

It is possible to redefine all the graphical parameters of a subset only; if not specified, sensible default values will be utilised.

...

Ignored.

Value

A ggplot2::ggplot() object that can be combined with additional geom_*, scale_*, theme_*, etc.

Examples

1
2
3
4
5
6
7
library(rsimsum)
library(ggplot2)
data("frailty", package = "rsimsum")
ms <- multisimsum(data = frailty, par = "par", true = c(trt = -0.50,
   fv = 0.75), estvarname = "b", se = "se", methodvar = "model",
   by = "fv_dist", x = TRUE)
zip(ms, par = "trt")

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