Revision 2849c21e86f029263deccdfbbeccb0d7cb9e6e2e authored by Matthias Templ on 06 May 2011, 05:59:55 UTC, committed by cran-robot on 06 May 2011, 05:59:55 UTC
1 parent 59ff873
Raw File
ilr.R
`ilr` <-
function(x){
  x.ilr=matrix(NA,nrow=nrow(x),ncol=ncol(x)-1)
  D=ncol(x)
  for (i in 1:ncol(x.ilr)){
    x.ilr[,i]=sqrt((D-i)/(D-i+1))*log(((apply(as.matrix(x[,(i+1):D,drop=FALSE]),1,prod))^(1/(D-i)))/(x[,i]))
} 
invisible(x.ilr)
}


back to top