coef_year: Get model coefficients for year

View source: R/coef_year.R

coef_yearR Documentation

Get model coefficients for year

Description

Call stats::coef to get model coefficients from a model fit in R. Year will be a factor term, and thus, the coefficients with year in their name will be returned. No interactions with year are included.

Usage

coef_year(results)

Arguments

results

A model object output from a statistical model such as stats::glm.

Value

A vector of parameter values for all parameters pertaining to year in the model.

Author(s)

Kelli F. Johnson


iantaylor-NOAA/Lingcod_2021 documentation built on Oct. 30, 2024, 6:42 p.m.