Description Usage Arguments Value
Calculate predicted value for weights.
1 2 3 4 5 6 7 8 | fit_and_predict(
data,
a_bar = NULL,
exposure.var,
family,
mod,
is_aform = FALSE
)
|
data |
Data to be used to fit model. |
a_bar |
Intervention value on exposure. |
exposure.var |
A vector of exposure variables, including lagged exposure variables. |
family |
Model link function, |
mod |
A formula string. |
is_aform |
Indication of model for exposure or censoring, defualt is for mediator model. |
Returns a predicted numerical vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.