create_fp_terms {mfp2}R Documentation

Helper to create overview table of fp terms

Description

To be used in fit_mfp().

Usage

create_fp_terms(fp_powers, acdx, df, select, alpha, criterion)

Arguments

fp_powers

powers of the created FP terms.

acdx

a logical vector of length nvars indicating which continuous variables should undergo the approximate cumulative distribution (ACD) transformation.

df

a numeric vector of length nvars of degrees of freedom.

select

a numeric vector of length nvars indicating significance levels for backward elimination.

alpha

a numeric vector of length nvars indicating significance levels for tests between FP models of different degrees.

criterion

a character string defining the criterion used to select variables and FP models of different degrees.

Value

Dataframe with overview of all fp terms. Each row represents a variable, with rownames giving the name of the variable. Variables with acd transformation are prefixed by A_ by the print and summary methods. The dataframe comprises the following columns:


[Package mfp2 version 1.0.0 Index]