scale_do {hyper.gam} | R Documentation |
Alternative scale Methods
Description
Alternative scale using median, IQR and mad.
Usage
scale_do(x, center, scale)
Arguments
x |
|
center |
|
scale |
Details
Function scale_do()
performs scaling according to user-specified
definition of center
and scale
.
Value
Function scale_do()
returns a numeric vector of the same length as x
.
Examples
set.seed(1315); x = rnorm(20)
x |> scale_do(center = median, scale = mad)
x |> scale_do(center = median, scale = IQR)
[Package hyper.gam version 0.1.2 Index]