plot.episensr.booted: Plot of bootstrap simulation output for selection and...

Description Usage Arguments See Also Examples

View source: R/plot.episensr.booted.R

Description

This takes an episensr bootstrap object and produces the plot of bootstrap replicates for selection or misclassification bias of the variable of interest, either relative risk or odds ratio. It also draws the confidence interval.

Usage

1
2
## S3 method for class 'episensr.booted'
plot(x, association = c("rr", "or"), ...)

Arguments

x

An object of class "episensr.booted" returned from the episensr bootstrap generation function.

association

Choice between bias adjusted relative risk (rr) and odds ratio (or).

...

Other unused arguments.

See Also

boot.bias, boot, selection, misclassification

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
misclass_eval <- misclassification(matrix(c(215, 1449, 668, 4296),
dimnames = list(c("Breast cancer+", "Breast cancer-"),
c("Smoker+", "Smoker-")),
nrow = 2, byrow = TRUE),
type = "exposure",
bias_parms = c(.78, .78, .99, .99))

set.seed(123)
misclass_boot <- boot.bias(misclass_eval)
plot(misclass_boot, association = "rr")

episensr documentation built on Aug. 20, 2021, 9:06 a.m.