
Fast G-Computation (Standardization) Point Estimate for Logistic Regression (C++)
Source:R/RcppExports.R
gcomp_logistic_point_estimate_cpp.RdComputes the standardized (G-computation) marginal risk difference under a
fitted logistic regression model. This is a thin alias: it delegates directly
to gcomp_fractional_logit_point_estimate_cpp (see that page for
the full standardization formula and counterfactual-averaging methodology,
which is identical for logistic and fractional-logit/quasi-binomial models),
passing its arguments through unchanged.
Value
A list with elements mean1 (standardized mean risk under
\(T=1\) for everyone), mean0 (standardized mean risk under \(T=0\)
for everyone), and md (mean1 - mean0, the standardized risk
difference).
See also
gcomp_fractional_logit_point_estimate_cpp for the full
documentation of the underlying computation.