standardize | R Documentation |
This is a simple helper function to standardize data. We recommmend to standardize covariates as it makes parameter interpretation easier.
standardize(input, center = TRUE, type = "sd")
input |
A vector of data to standardize. |
center |
Subtract mean? |
type |
Divide by "max" or "sd"? |
A vector of standardize data.
## Not run:
age_standardize = standardize(input=age)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.