View source: R/ps_calibration.R
| is_ps_calibrated | R Documentation |
is_ps_calibrated() tests whether x is a calibrated propensity score
object (class ps_calib) or a psw object derived from calibrated scores.
is_ps_calibrated(x)
x |
An object to test. |
A single TRUE or FALSE.
ps_calibrate() to calibrate propensity scores.
ps <- runif(100)
exposure <- rbinom(100, 1, ps)
is_ps_calibrated(ps)
calibrated <- ps_calibrate(ps, exposure, smooth = FALSE)
is_ps_calibrated(calibrated)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.