getStats: Grabs P value, F statistic and difference between null and...

View source: R/getStats.R

getStatsR Documentation

Grabs P value, F statistic and difference between null and residual deviance from glm, lm, gam and bigglm objects.

Description

Grabs P value, F statistic and difference between null and residual deviance from glm, lm, gam and bigglm objects.

Usage

getStats(GLM, y = NULL)

Arguments

GLM

glm object

y

dependent variable - used when inputting bigglm object.

Value

vector containing P value and F statistic from aov(GLM)

Examples

x <- rnorm(10)
y <- 2*x+rnorm(10)

GLM <- glm(y~x)
getStats(GLM)

reptalex/phylofactor documentation built on Feb. 28, 2024, 3:19 p.m.