pcori_conditional_means {SensIAT} | R Documentation |
Compute Conditional Means
Description
Compute Conditional Means
Usage
pcori_conditional_means(model, alpha = 0, new.data = model.frame(model), ...)
Arguments
model |
An object of class |
alpha |
Sensitivity parameter |
new.data |
Data to compute conditional means for, defaults to the model frame for the fitted model. |
... |
passed onto methods. |
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
.
Value
The new.data
frame with additional columns E_Y_past
, and E_exp_alphaY
appended.
[Package SensIAT version 0.1.0 Index]