model | R Documentation |
Executes a linear model, automatically choosing binomial family as necessary.
model(
x,
y,
family = if (all(y %in% 0:1, na.rm = TRUE)) "binomial" else "gaussian",
...
)
x |
x values |
y |
y values |
family |
gaussian by default, or binomial for all y either zero or 1 |
... |
passed to |
glm
Other regression functions:
metastats()
,
region()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.