get_family | R Documentation |
A robust and resilient alternative to stats::family
. To avoid issues
with models like gamm4
.
get_family(x, ...)
x |
A statistical model. |
... |
Further arguments passed to methods. |
data(mtcars)
x <- glm(vs ~ wt, data = mtcars, family = "binomial")
get_family(x)
x <- mgcv::gamm(
vs ~ am + s(wt),
random = list(cyl = ~1),
data = mtcars,
family = "binomial"
)
get_family(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.