is_ps_calibrated: Check if propensity scores are calibrated

View source: R/ps_calibration.R

is_ps_calibratedR Documentation

Check if propensity scores are calibrated

Description

is_ps_calibrated() tests whether x is a calibrated propensity score object (class ps_calib) or a psw object derived from calibrated scores.

Usage

is_ps_calibrated(x)

Arguments

x

An object to test.

Value

A single TRUE or FALSE.

See Also

ps_calibrate() to calibrate propensity scores.

Examples

ps <- runif(100)
exposure <- rbinom(100, 1, ps)

is_ps_calibrated(ps)

calibrated <- ps_calibrate(ps, exposure, smooth = FALSE)
is_ps_calibrated(calibrated)


propensity documentation built on March 3, 2026, 1:06 a.m.