powered by
To be used in fit_mfp().
fit_mfp()
calculate_df(p)
returns numeric value denoting the number of degrees of freedom (df).
power of a variable.
An example calculation: if p is the power(s) and p = c(1,2), then df = 4 but if x = NA then df = 0.