| mlrrep {SwathXtend} | R Documentation |
Calculate all pairwise ratios, log-transform them, find the least variable replicate.
mlrrep(mat)
mat |
Data matrix with replicates as columns |
mat.norm |
Normalized data matrix; matrix assumed positive |
wdmat |
Square matrix of half peak widths for each ratio of replicates of size ncol(mat) |
nfmat |
Square matrix of normalization factors for each ratio of replicates of size ncol(mat) |
idx |
Index of replicate to be used as denominator yielding smallest widths |
# Example using the iris data mlrrep(iris[,-5]) # random data mat = exp(matrix(rnorm(1000),ncol=4)) res = mlrrep(mat) layout(matrix(1:2, nrow=1)) boxplot(log(res$mat.norm)) boxplot(log(mat))