Learn R Programming

rsimsum (version 0.3.1)

zip.simsum: zip method for simsum objects

Description

zip() method for objects of class simsum.

Usage

# S3 method for simsum
zip(obj, wald.level = 0.95, gpars = list(), ...)

Arguments

obj

An object of class simsum.

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("relhaz", package = "rsimsum")
s <- simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se",
  methodvar = "model", by = c("n", "baseline"), x = TRUE)
zip(s)
data("MIsim", package = "rsimsum")
s2 <- simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se",
  methodvar = "method", x = TRUE)
zip(s2)
# }

Run the code above in your browser using DataLab