fit_outer_exp_model: Fit outer moderls for ICE using 'lm'

View source: R/ice.R

fit_outer_exp_modelR Documentation

Fit outer moderls for ICE using lm

Description

Fit outer moderls for ICE using lm

Usage

fit_outer_exp_model(k, data, preds, rhs_formula, binomial_n = NULL)

Arguments

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


audreyrenson/didgformula documentation built on Oct. 9, 2022, 11:45 a.m.