extract_coefs: Extract and Format Model Coefficients

View source: R/prints.R

extract_coefsR Documentation

Extract and Format Model Coefficients

Description

This function retrieves the coefficients from a x object, formats them with appropriate names, and rounds each coefficient to the specified number of decimal places. Optionally, the intercept can be included or excluded from the output.

Usage

extract_coefs(x, digit = 3)

Arguments

x

A model object generated from catalytic that containing model coefficients.

digit

An integer specifying the number of decimal places for rounding coefficients. Default is 3.

Value

A named numeric vector of model coefficients, rounded to the specified number of decimal places.


catalytic documentation built on April 4, 2025, 5:51 a.m.