rescale_binary | R Documentation |
This function rescales a covariate to have a mean of zero and range (maximum - minimum) of one
rescale_binary(x)
x |
A numeric vector, matrix, or data frame |
A numeric vector, matrix, or data frame with rescaled covariates having mean of zero and range (maximum - minimum) of one.
vec <- c(1, 3, 1, 3, 1)
rescale_binary(vec)
mat <- matrix(c(1, 3, 1, 3, 1), nrow = 5, ncol = 5)
rescale_binary(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.