res_df: Retrieve the residual degrees of freedom from the model.

View source: R/util.R

res_dfR Documentation

Retrieve the residual degrees of freedom from the model.

Description

Retrieve the residual degrees of freedom from the model.

Usage

res_df(model)

Arguments

model

A fitted regression model (using gam, or bam).

Value

Numeric value: residual degrees of freedom from the model.

See Also

Other Utility functions: convertNonAlphanumeric(), corfit(), diff_terms(), find_difference(), missing_est(), modeledf(), observations(), print_summary(), refLevels(), summary_data(), timeBins()

Examples

data(simdat)

# Fit simple GAM model:
gam1 <- bam(Y ~ s(Time), data=simdat, discrete=TRUE)
res_df(gam1)
# ... which is the same as:

modeledf(gam1)


itsadug documentation built on June 17, 2022, 5:05 p.m.