robincar_calibrate {RobinCar} | R Documentation |
Perform linear or joint calibration
Description
Uses linear or joint calibration to "calibrate" the estimates from a linear or GLM-type adjustment.
Linear calibration fits a linear model with treatment (and treatment-by-covariate interactions) and with the predicted as constructed covariates where
is the number of treatment groups;
joint calibration also includes
the strata variables as covariates.
Usage
robincar_calibrate(result, joint = FALSE, add_x = NULL)
Arguments
result |
A GLMModelResult |
joint |
If true, then performs joint calibration
with the |
add_x |
Additional x to use in the calibration. Must have been in the original dataset that robincar_glm was called on. |
Value
A result object that has the same structure as RobinCar::robincar_glm(), with the argument 'result' included as "original" in the list.