model: Execute Linear Model

View source: R/utils.R

modelR Documentation

Execute Linear Model

Description

Executes a linear model, automatically choosing binomial family as necessary.

Usage

model(
  x,
  y,
  family = if (all(y %in% 0:1, na.rm = TRUE)) "binomial" else "gaussian",
  ...
)

Arguments

x

x values

y

y values

family

gaussian by default, or binomial for all y either zero or 1

...

passed to glm

Value

glm

See Also

Other regression functions: metastats(), region()


metaplot documentation built on May 29, 2024, 6:13 a.m.

Related to model in metaplot...