get_lm_stats: Get model object results

View source: R/statistics.R

get_lm_statsR Documentation

Get model object results

Description

Given a linear model object created with lm() or lmodel2(), retrieve the coefficients (intercept and slope) and a dataframe of simple statistics.

Usage

get_lm_stats(modelobject, method = "OLS")

Arguments

modelobject

Object of class lm or lmodel2

method

For lmodel2 only, regression method: either "OLS", "MA", or "SMA", see ?lmodel2 for details

Value

List containing coefficients in the first place and a dataframe of model statistics in the second place


BIO-RSG/oceancolouR documentation built on April 25, 2024, 12:28 p.m.