sanitize_model.glm: (internal) Sanitize a glm model

View source: R/sanitize.R

sanitize_model.glmR Documentation

(internal) Sanitize a glm model

Description

(internal) Sanitize a glm model

Usage

## S3 method for class 'glm'
sanitize_model(model, trt, ...)

Arguments

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.

Value

if model is non-compliant will throw warnings or errors.

Examples

trial01$trtp <- factor(trial01$trtp)
fit1 <- glm(aval ~ trtp + bl_cov, family = "binomial", data = trial01)
fit1 <- sanitize_model(fit1, "trtp")


beeca documentation built on April 3, 2025, 5:59 p.m.