fp {mfp2}R Documentation

Helper to assign attributes to a variable undergoing FP-transformation

Description

Used in formula interface to mfp2().

Usage

fp(
  x,
  df = 4,
  alpha = 0.05,
  select = 0.05,
  shift = NULL,
  scale = NULL,
  center = TRUE,
  acdx = FALSE,
  powers = NULL
)

fp2(...)

Arguments

x

a vector representing a continuous variable undergoing fp-transformation.

df, alpha, select, shift, scale, center, acdx

See mfp2()) for details.

powers

a vector of powers to be evaluated for x. Default is NULL and powers = c(-2, -1, -0.5, 0, 0.5, 1, 2, 3) will be used.

...

used in alias fp2 to pass arguments.

Value

The vector x with new attributes relevant for fp-transformation. All arguments passed to this function will be stored as attributes.

Functions

Examples


xr = 1:10
fp(xr)
fp2(xr)

[Package mfp2 version 1.0.0 Index]