reg.dof: Degree of freedom for lim.fit

Description Usage Arguments Examples

View source: R/reg.dof.R

Description

Calculate degree of freedom for the outcome of lm.fit(). This function is built for reg.linreg for higher efficiency only. It can't be used for calculating degree of freedom in general operation.

Usage

1
reg.dof(fit)

Arguments

fit

:outcome of lm.f

Examples

1
2
3
4
X <- as.matrix(cbind(1,EuStockMarkets[,1:2])) # create the design matrix
Y <- as.data.frame(EuStockMarkets)$FTSE
fit <- lm.fit(x = X, y = Y)
reg.dof(fit)

YRmisc documentation built on March 25, 2020, 5:13 p.m.

Related to reg.dof in YRmisc...