Shift and scale a covariate vector (if wished) to have positive and small numbers.

Share:

Description

This function is (almost exactly) copied from package “mfp” to be consistent.

Usage

1
fpScale(x, scaling = TRUE)

Arguments

x

the covariate vector

scaling

should shifting and scaling be performed (default)?

Value

list of ‘shift’ and ‘scale’ parameters appropriate for this covariate vector.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.