model: Execute Linear Model

Description Usage Arguments Value See Also

View source: R/utils.R

Description

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

Usage

1
2
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 1, 2019, 10:17 p.m.

Related to model in metaplot...