sanitize_model.glm {beeca} | R Documentation |
(internal) Sanitize a glm model
## S3 method for class 'glm'
sanitize_model(model, trt, ...)
model |
a glm with binomial family canonical link. |
trt |
the name of the treatment variable on the right-hand side of the formula in a glm. |
... |
ignored. |
if model is non-compliant will throw warnings or errors.
trial01$trtp <- factor(trial01$trtp)
fit1 <- glm(aval ~ trtp + bl_cov, family = "binomial", data = trial01)
fit1 <- sanitize_model(fit1, "trtp")