standardizeData.Rd
Standardize data (feature standardization). Optional covariates adjustment is provided.
standardizeData(dat, batch, mod, mean.only = FALSE)
dat | Numeric matrix with imaging features as rows, and scans/images as columns. |
---|---|
batch | Numeric or character vector specifying the batch/scanner
variable needed for harmonization. Length must be equal to the
number of columns in |
mod | Optional model matrix for outcome of interest and other covariates besides batch/scanner. |
mean.only | Should only correction factors be calculated for location? FALSE by default. |
Standardized data.