col_minmax function

Scale numeric vector between 0 and 1

Scale numeric vector between 0 and 1

Helper function to scale numeric variables. Aids convergence of Midas model.

col_minmax(x)

Arguments

  • x: A numeric vector or column.

Returns

Vector scaled between 0 and 1

Examples

ex_num <- runif(100,1,10) scaled <- col_minmax(ex_num)
  • Maintainer: Thomas Robinson
  • License: Apache License (>= 2.0)
  • Last published: 2023-10-11