Correct df given a fitted earth.object
Arguments
- x
an earth object
- N
number of repetitions for approximating empirical df
Value
a list of three elements
- df_cov
empirical df based on covariance formula
- df_app
average df based on mars' approximation formula
- penalty
penalty factor