dfresid
dfresid, short for residual degrees of freedom, is a quantity used in regression analysis to quantify the amount of information remaining to estimate the model’s error variance after fitting the model. It reflects how many observations are left to inform the error term once the model parameters have been estimated.
Formally, df_residual = n − rank(X), where n is the number of observations and rank(X) is the rank
Usage and interpretation: df_residual serves as the denominator in the estimate of the error variance, with
Relation to model fit: A larger df_residual generally indicates more reliable variance estimation and greater statistical