glm.binomial {adelie} | R Documentation |
Creates a Binomial GLM family object.
Description
Creates a Binomial GLM family object.
Usage
glm.binomial(y, weights = NULL, link = "logit")
Arguments
y |
Response vector. |
weights |
Observation weights. |
link |
The link function type. |
Value
Binomial GLM object.
Examples
n <- 100
y <- rbinom(n, 1, 0.5)
obj <- glm.binomial(y)
[Package adelie version 1.0.1 Index]