glm.binomial: Creates a Binomial GLM family object.

View source: R/glm.R

glm.binomialR 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)

adelie documentation built on June 22, 2024, 10:53 a.m.