plot.qi: Plot a quantity of interest

Description Usage Arguments

Description

plot.qi() plots an object of class "qi," eithering giving a density plot of the quantity of interest is for a single qi (i.e., a single predicted probability, risk-ratio, or first-difference) or a plot of the predicted probability and credible intervals if the qi is a range of predicted probabilities.

Usage

1
2
## S3 method for class 'qi'
plot(qi, x = NULL, xlim = NULL, ylim = NULL, ...)

Arguments

qi

An object of class "qi" created by the calc_qi() function.

x

A numeric variable with which the qi changes. Usually, this is the element of X_pred_list given to calc_qi() that varies.

xlim

The x limits (x1, x2) of the plot.

ylim

The y limits (y1, y2) of the plot.

...

Arguments passed to eplot() in the package compactr.


carlislerainey/separation documentation built on May 13, 2019, 12:45 p.m.