fit_two_outcome_models | R Documentation |
glm
at t and t-1 for ICE and outcome regression pipelinesFit outcome models using glm
at t and t-1 for ICE and outcome regression pipelines
fit_two_outcome_models( t, data, rhs_formula_t, rhs_formula_tmin1, family, binomial_n = NULL )
t |
int. |
data |
wide data frame |
rhs_formula_t |
chr. RHS glue-style formula for Yt model |
family |
stats::families object or string referring to one |
binomial_n |
vector of group sizes of length(nrow(data)) |
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.