# Function for Standardizing by Centering and Dividing by 2 sd's

### Description

This function standardizes a variable by centering and dividing by 2 sd's with exceptions for binary variables.

### Usage

1 | ```
rescale(x, binary.inputs="center")
``` |

### Arguments

`x` |
a vector |

`binary.inputs` |
options for standardizing binary variables, default is |

### Value

the standardized vector

### Author(s)

Andrew Gelman gelman@stat.columbia.edu; Yu-Sung Su suyusung@tsinghua.edu.cn

### References

Andrew Gelman. (2008).
“Scaling regression inputs by dividing by two standard deviations”.
*Statistics in Medicine* 27: 2865–2873.
http://www.stat.columbia.edu/~gelman/research/published/standardizing7.pdf

### See Also

`standardize`

### Examples

1 2 3 4 5 6 7 8 9 10 11 12 |