unscaleY: Unscale a response vector

Description Usage Arguments Details Value Author(s)

View source: R/rescale.R

Description

Unscales a response vector to the same scale as the scaled training data response vector

Usage

1
unscaleY(y, yTrain)

Arguments

y

A numeric vector of length nPred

yTrain

A numeric vector of length nPred that has already been scaled. This vector needs to have attributes "scaled:center" and "scaled:scale"

Details

This function scales a vector to the same scale as the scaled training data response vector by multiplying the response by the standard deviation of the training data and adding the mean of the training data

Value

A vector rescaled to it's natural scale with attributes "scaled:minimum" and "scaled:range"

Author(s)

Casey Davis (cbdavis33@gmail.com)


cbdavis33/bcgp documentation built on Oct. 1, 2019, 8:07 a.m.