robin_glm {RobinCar2} | R Documentation |
Covariate adjusted glm model
Description
Covariate adjusted glm model
Usage
robin_glm(
formula,
data,
treatment,
contrast = "difference",
contrast_jac = NULL,
vcov = "vcovG",
family = gaussian(),
vcov_args = list(),
pair,
...
)
Arguments
formula |
( |
data |
( |
treatment |
( |
contrast |
( |
contrast_jac |
( |
vcov |
( |
family |
( |
vcov_args |
( |
pair |
Pairwise treatment comparison. |
... |
Additional arguments passed to |
Details
If family is MASS::negative.binomial(NA)
, the function will use MASS::glm.nb
instead of glm
.
Value
A treatment_effect object.
Examples
robin_glm(
y ~ treatment * s1,
data = dummy_data,
treatment = treatment ~ s1, contrast = "difference"
)