fit_two_outcome_models: Fit outcome models using 'glm' at t and t-1 for ICE and...

View source: R/ice.R

fit_two_outcome_modelsR Documentation

Fit outcome models using glm at t and t-1 for ICE and outcome regression pipelines

Description

Fit outcome models using glm at t and t-1 for ICE and outcome regression pipelines

Usage

fit_two_outcome_models(
  t,
  data,
  rhs_formula_t,
  rhs_formula_tmin1,
  family,
  binomial_n = NULL
)

Arguments

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


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