coefficients.ca: Extract coefficients from a fitted linear model (lm)

View source: R/clanToolsFunctions.R

coefficients.caR Documentation

Extract coefficients from a fitted linear model (lm)

Description

This function helps get easy access to the uncertainties associated with the fit.

Usage

fm <- lm(x~y, data=df)
cc <- coefficents.ca(fm)
print( cc$coeff )
print( cc$u.coeff )

Arguments

fm

is a fitted model from lm

Value

A dataframe with coefficients and uncertainties. coeff is the fitted values and u.coeff is the accociated uncertainties.

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on June 2, 2024, 6:23 a.m.