Compute Conditional Means
Usage
pcori_conditional_means(model, alpha = 0, new.data = model.frame(model), ...)
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 asE_y_past
, and$E \big[ \exp \{ \alpha Y(t) \} \ | A(t)=1, \bar{O}(t) \big]$
, returned asE_exp_alphaY
.