Obtain counterfactual prediction of a fit.
Usage
predict_counterfactual(fit, treatment, data, vcov, vcov_args, ...)
Arguments
- fit
fitted object.
- treatment
(formula
) formula of form treatment ~ strata(s).
- data
(data.frame
) raw dataset.
- vcov
(function
or character
) variance function or name.
- vcov_args
(list
) additional arguments for variance function.
- ...
Additional arguments for methods.
Value
Numeric matrix of counter factual prediction.