Fit model-robust standardization for longitudinal CRTs
mrstdlcrt_fit(
data,
formula,
cluster_id = "cluster",
period = "period",
trt = "trt",
method = c("gee", "lmer", "glmer"),
family = c("gaussian", "binomial"),
corstr = "independence",
scale = c("RD", "RR", "OR")
)Object of class "mrs".
data.frame with outcome, treatment, period, cluster, covariates.
model formula; may include interactions and random effects.
cluster id column name.
period column name.
treatment column name (0/1).
"gee","lmer","glmer".
"gaussian","binomial".
gee correlation.
For binomial: "RD","RR","OR" (RR/OR are on log scale).