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 x = NA then df = 0.

Value

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


mfp2 documentation built on Nov. 15, 2023, 1:06 a.m.