R/alr.R

"alr" <-
function(X,divisorvar){
# additive logratio transformation
# INPUT: X...data matrix, divisorvar...number of ratioing variable
X.alr <- log10(X/X[,divisorvar])
return(X.alr[,-divisorvar])
}

Try the chemometrics package in your browser

Any scripts or data that you put into this service are public.

chemometrics documentation built on Aug. 25, 2023, 5:18 p.m.