getLocationsAndScales {ClassifyR} | R Documentation |
Calculates the location and scale for each feature.
## S4 method for signature 'matrix' getLocationsAndScales(measurements, ...) ## S4 method for signature 'DataFrame' getLocationsAndScales(measurements, location = c("mean", "median"), scale = c("SD", "MAD", "Qn")) ## S4 method for signature 'MultiAssayExperiment' getLocationsAndScales(measurements, targets = names(measurements), ...)
measurements |
Either a |
targets |
If |
... |
Variables not used by the |
location |
The type of location to be calculated. |
scale |
The type of scale to be calculated. |
"SD"
is used to represent standard deviation and "MAD"
is used to represent
median absolute deviation.
A list
of length 2. The first element contains the location for
every feature. The second element contains the scale for every feature.
Dario Strbenac
Qn: http://www.tandfonline.com/doi/pdf/10.1080/01621459.1993.10476408
genesMatrix <- matrix(rnorm(1000, 8, 4), ncol = 10) distributionInfo <- getLocationsAndScales(genesMatrix, "median", "MAD") mean(distributionInfo[["median"]]) # Typical median. mean(distributionInfo[["MAD"]]) # Typical MAD.