Learn R Programming

metaplot (version 0.8.4)

model: 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",
  ...
)

Value

glm

Arguments

x

x values

y

y values

family

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

...

passed to glm

See Also

Other regression functions: metastats(), region()