plot.ecap: Plotting ECAP Object

Description Usage Arguments Author(s) References Examples

View source: R/ecap.R

Description

Plots diagnostic information of an ECAP object. Two plots are produced. The first plot displays the estimate of the function g that the ecap procedure produced. The second compares the unadjusted probability estimates to the ECAP adjusted probability estimates that were used to train the model.

Usage

1
2
## S3 method for class 'ecap'
plot(x, ...)

Arguments

x

An object of class ecap.

...

Additional arguments

Author(s)

Bradley Rava, Peter Radchenko and Gareth M. James.

References

http://faculty.marshall.usc.edu/gareth-james/Research/Probs.pdf

Examples

1
2
3
4
5
set.seed(1)
p_obs <- runif(1000, 0, 1)
win_var <- rbinom(length(p_obs), 1, p_obs)
ecap_fit <- ecap(unadjusted_prob = p_obs, win_var = win_var, win_id = 1, bias_indicator = FALSE)
plot(ecap_fit)

ecap documentation built on July 23, 2020, 9:07 a.m.