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()


bergsmat/metaplot documentation built on Feb. 21, 2024, 1:18 p.m.