model {metaplot}R 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()


[Package metaplot version 0.8.4 Index]