Skip to contents

Compute Conditional Means

Usage

pcori_conditional_means(model, alpha = 0, new.data = model.frame(model), ...)

Arguments

model

An object of class SensIAT::outcome-model

alpha

Sensitivity parameter

new.data

Data to compute conditional means for, defaults to the model frame for the fitted model.

...

passed onto methods.

Value

The new.data frame with additional columns E_Y_past, and E_exp_alphaY appended.

Details

Compute the conditional expectations needed for predictions in the models. Three additional values/expectations are computed:

  • $E \big[ Y(t) \exp \{ \alpha Y(t) \} | A(t)=1, \bar{O}(t) \big]$, returned as E_y_past, and

  • $E \big[ \exp \{ \alpha Y(t) \} \ | A(t)=1, \bar{O}(t) \big]$, returned as E_exp_alphaY.