Learn R Programming

insight (version 0.18.6)

find_statistic: Find statistic for model

Description

Returns the statistic for a regression model (t-statistic, z-statistic, etc.).

Small helper that checks if a model is a regression model object and return the statistic used.

Usage

find_statistic(x, ...)

Value

A character describing the type of statistic. If there is no statistic available with a distribution, NULL will be returned.

Arguments

x

An object.

...

Currently not used.

Examples

Run this code
# regression model object
data(mtcars)
m <- lm(mpg ~ wt + cyl + vs, data = mtcars)
find_statistic(m)

Run the code above in your browser using DataLab