lm_simple: Simplified linear least squares fit

View source: R/utility_functions.R

lm_simpleR Documentation

Simplified linear least squares fit

Description

Returns the most useful parts of a basic /codelm() fit to simple univariate (y ~ x) data: intercept, slope, p-value and r squared

Usage

lm_simple(formula, data)

Arguments

formula

A standard R formula object, passed to /codelm()

data

Values to fit (must contain the columns in /codeformula)

Value

A named list (int, slope, p, rsq)


yadbor/bluer documentation built on Jan. 31, 2023, 7:44 p.m.