df_residual

Residual Degrees of Freedom

Returns the residual degrees of freedom of a model.

Parameters

Returns

The residual degrees of freedom.

Examples

model = lm(mpg ~ wt, data = mtcars)
df = df_residual(model)