scale2: Scale data by two standard deviations

Description Usage Arguments References

View source: R/scale2.R

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

1
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 July 21, 2020, 8:56 p.m.