fit_effect_models: Fit Effect Models for Both Subgroups (GLM path)

View source: R/Cox_estimation_helpers.R

fit_effect_modelsR Documentation

Fit Effect Models for Both Subgroups (GLM path)

Description

GLM counterpart to fit_cox_models. Calls the estimator closure on H (treat.recommend == 0) and Hc (treat.recommend == 1) subgroups.

Usage

fit_effect_models(df, estimator_fn)

Arguments

df

Data frame with a treat.recommend column.

estimator_fn

Closure from make_effect_estimator().

Value

List with H_obs, seH_obs, Hc_obs, seHc_obs.


forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.