p_lm: Get p values of linear model

View source: R/p_lm.R

p_lmR Documentation

Get p values of linear model

Description

Get p values of linear model

Usage

p_lm(model)

Arguments

model

A linear model fitted via lm.

Value

Named numeric vector containing p-values of the model, i.e., the overall p-value of the F-statistic, and the p-values of the intercept and coefficients. For naming convention of output see example.

Examples


x = rnorm(42)
y = x + rnorm(42)
m = lm(y ~ x)
p_lm(m)
#      p_model  p_intercept          p_x
# 9.010565e-11 3.330814e-01 9.010565e-11

manuelbickel/textility documentation built on Nov. 25, 2022, 9:07 p.m.