is_ps_calibrated() tests whether x is a calibrated propensity score
object (class ps_calib) or a psw object derived from calibrated scores.
See also
ps_calibrate() to calibrate propensity scores.
Examples
ps <- runif(100)
exposure <- rbinom(100, 1, ps)
is_ps_calibrated(ps)
#> [1] FALSE
calibrated <- ps_calibrate(ps, exposure, smooth = FALSE)
#> ℹ Setting focal level to 1
is_ps_calibrated(calibrated)
#> [1] TRUE
