normalize_data: normalize_data: Normalize data to the range [0, 1]

View source: R/datamanagement.R

normalize_dataR Documentation

normalize_data: Normalize data to the range [0, 1]

Description

Scales the response and covariates of a dataset to the unit interval [0,1]. This normalization is required before applying SLGP methods. If range bounds are not provided, they are computed from the data.

Usage

normalize_data(
  data,
  predictorNames,
  responseName,
  predictorsUpper = NULL,
  predictorsLower = NULL,
  responseRange = NULL
)

Arguments

data

A data frame containing the dataset.

predictorNames

A character vector of covariate column names.

responseName

A character string specifying the response variable name.

predictorsUpper

Optional numeric vector of upper bounds for covariates.

predictorsLower

Optional numeric vector of lower bounds for covariates.

responseRange

Optional numeric vector of length 2 giving lower and upper bounds for the response.

Value

A normalized data frame with the same column structure as data, with values scaled to [0,1].


SLGP documentation built on Sept. 9, 2025, 5:25 p.m.