metastats: Format GLM Statistics

View source: R/utils.R

metastatsR Documentation

Format GLM Statistics

Description

Formats GLM statistics. Uses a gaussian family by default, or binomial family if all y are 0 or 1, to fit a general linear model. Formats number of observations, p-value, and Pearson correlation coefficient into a string for printing.

Usage

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

Arguments

x

x values

y

y values

family

regression family

...

other arguments

Value

character

See Also

scatter_panel

Other regression functions: model(), region()


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