Can the GLM resampling approximation represent this effect measure?
Source:R/subgroup_consistency_helpers.R
dot-glm_resample_supported.RdThe resampling approximation requires the treatment effect to be a single
model coefficient with a well-defined influence function. That holds for
OR/RR (logistic / log-binomial), RD (identity-link binomial), MD (OLS), and
IRR (Poisson with offset). It does not hold for IRD (a delta-method rate
difference), for which the caller falls back to literal splitting.
The decision reads spec$effect_measure only. The spec carries no
propensity setting, so a propensity-adjusted (IPTW / G-computation)
analysis with a supported measure also takes the resampling path, whose
model is fitted without the propensity weights (see
.consistency_glm_pieces()).
Arguments
- spec
List; the
glm_resample_specthreaded fromforestsearch().