scaleData function

Scale Response Variable to Ensure Robust Numerical Calculations

Scale Response Variable to Ensure Robust Numerical Calculations

Function determines scaling factor for transforming the mean of the response to a range between 0.1 and 1, applies scaling of the response and binds the scaling factor to the data as attribute 'scale'.

scaleData(Data = NULL, resp = NULL)

Arguments

  • Data: (data.frame) with the data to be fitted and the response to be scaled
  • resp: (character) name of the (numeric) response variable

Returns

(data.frame) with the response scaled according to the scaling-factor, which is recorded in the attribute scale of the data set

Author(s)

Andre Schuetzenmeister andre.schuetzenmester@roche.com

  • Maintainer: Andre Schuetzenmeister
  • License: GPL (>= 3)
  • Last published: 2024-03-07

Useful links