Learn R Programming

rsimsum (version 0.3.3)

zip.multisimsum: zip method for multisimsum objects

Description

zip() method for objects of class multisimsum.

Usage

# S3 method for 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

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab