Wraps the outcome regression and value term functions to estimate the value of all regimes in the provided list. For each regime, Q-functions are fitted (if specified), augmentation and IPW terms are computed, and the regime value is estimated.
Arguments
- df
A data frame containing the trial data, including treatment assignments, covariates, outcomes, and a
kappacolumn.- q_list
A list of outcome regression model specifications (one per stage), or
NULLfor IPW estimation.- regime_all
A list of regime objects, each containing a
regimematrix and aregime_indindicator matrix.- feasible_sets_indicator
A logical value indicating whether feasible sets are present in the trial design.
- pis
A data frame of estimated propensity scores with columns
pi1, ..., piK.- nus
A list as returned by
get_nu, containing the estimated stage probabilities.
Value
A list with the following components:
- value
A numeric vector of estimated regime values.
- df
A list of matrices of value term components, augmentation terms 1 through 2K then the IPW term for each regime.
- q_all
A list of fitted Q-function objects for each regime, or an empty list if
q_listisNULL.