extract_r2: Wrapper to extract R-squared from a linear regression model

View source: R/format_strings.R

extract_r2R Documentation

Wrapper to extract R-squared from a linear regression model

Description

This function takes an object produced by stats::lm() and returns the model R-squared

Usage

extract_r2(mod)

Arguments

mod

A linear regression model or a summary(lm()) object

Value

Model R-squared


silverer/statstring documentation built on Aug. 6, 2023, 11:48 a.m.