This function calculates beta statistics for a linear model fit.
Arguments
- lmfit
Fitted linear model object.
- varnames
Vector of variable names.
- se
Logical flag indicating whether to calculate standard errors (default: TRUE).
Value
A list containing the following elements:
estimate
: Estimated beta coefficients.stat
: t-statistics of the beta coefficients (ifse = TRUE
).se
: Standard errors of the beta coefficients (ifse = TRUE
).prob
: Probabilities associated with the t-statistics (ifse = TRUE
).stat_type
: Type of the statistics calculated.