fit_outer_exp_model | R Documentation |
lm
Fit outer moderls for ICE using lm
fit_outer_exp_model(k, data, preds, rhs_formula, binomial_n = NULL)
k |
int. Timepoint to which the outer expectation, i.e. E(mu_k^t|L_k, A_k), applies. |
data |
wide data frame |
preds |
vector of length(nrow(data)) of values predicted by the k+1 model. |
binomial_n |
vector of group sizes if Y refers to binomial aggregate data. Used to construct weights. |
rhs_formula_t |
chr. RHS glue-style formula for Yt model |
rhs_formula_tmin |
chr. RHS glue-style formula for Yt-1 model |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.