Description Usage Arguments Value Author(s) Examples
The function provides a data pretreatment approach called Autoscaling (also known as unit variance scaling). The data for each variable (metabolite) is mean centered and then divided by the standard deviation of the variable. This way each variable will have zero mean and unit standard deviation.
1 |
data |
a n x p data frame with n observations and p columns. While the first two columns usually represent the names of the samples and the class labels related to each sample respectively, the remaining columns represent metabolite concentrations measured by 1H NMR or bins of 1H NMR spectra |
exclude |
a boolean variable which stores a simple True/ False setting. If set to True the scaling method will exclude the first two columns. |
a scaled version of the input matrix
Piegiorgio Palla
1 2 3 4 5 | ## load the included example dataset
data(cachexiaData)
## call autoscale with the parameter exclude set to TRUE (default)
## in order to exclude the first two columns of the dataset from scaling
data.scaled <- autoscale(cachexiaData, exclude = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.