scale2 | R Documentation |
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).
scale2(x)
x |
A vector to be scaled. |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.