scale2: Scale data by two standard deviations

View source: R/scale2.R

scale2R Documentation

Scale data by two standard deviations

Description

This function is very similar to the scale function in that it centers and scales data, but scaling is accomplished by dividing the centered data by two standard deviations rather than one as detailed in Gelman (2008).

Usage

scale2(x)

Arguments

x

A vector to be scaled.

References

Gelman, A. (2008). Scaling regression inputs by dividing by two standard deviations. Statistics in Medicine, 27(15), 2865–2873. https://doi.org/10.1002/sim.3107


huntercole25/EcoCountHelper documentation built on Jan. 14, 2023, 4:13 a.m.