glm.multinomial {adelie} | R Documentation |
Creates a Multinomial GLM family object.
Description
Creates a Multinomial GLM family object.
Usage
glm.multinomial(y, weights = NULL)
Arguments
y |
Response vector. |
weights |
Observation weights. |
Value
Multinomial GLM object.
Examples
n <- 100
K <- 5
y <- t(rmultinom(n, 1, rep(1/K, K)))
obj <- glm.multinomial(y)
[Package adelie version 1.0.1 Index]