col_minmax {rMIDAS}R Documentation

Scale numeric vector between 0 and 1

Description

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

Usage

col_minmax(x)

Arguments

x

A numeric vector or column.

Value

Vector scaled between 0 and 1

Examples

ex_num <- runif(100,1,10)
scaled <- col_minmax(ex_num)

[Package rMIDAS version 1.0.0 Index]