Skip to contents

Draws a probability from prob_tirt() or its pair and intercept forms against the trait, with a marker at every value and a gray line at 0.5.

Usage

plot_tirt(eta, p)

Arguments

eta

Numeric vector of trait values.

p

Probabilities, one for each value of eta.

Value

A plotly object.

Examples

eta <- seq(-6, 6, by = 0.1)
plot_tirt(eta, prob_tirt(eta))