calculate_df: Helper to calculates the final degrees of freedom for the...

View source: R/fit_mfp.R

calculate_dfR Documentation

Helper to calculates the final degrees of freedom for the selected model

Description

To be used in fit_mfp().

Usage

calculate_df(p)

Arguments

p

power of a variable.

Details

An example calculation: if p is the power(s) and p = c(1,2), then df = 4 but if p = NA then df = 0.

Value

returns numeric value denoting the number of degrees of freedom (df).


mfp2 documentation built on June 8, 2025, 11:04 a.m.