R/FindBestTransform.R

Defines functions FindBestTransform

Documented in FindBestTransform

FindBestTransform <-
function(x){
  alphas <- seq(.01, 1, len=50)
  gof <- rep(NA, length(alphas))
  for(alpha in alphas){
    gof[alphas==alpha] <- GoodnessOfFit(x^alpha,type="mle")
  }
  return(alphas[which.min(abs(gof-(nrow(x)-1)*(ncol(x)-1)))])
}

Try the PoiClaClu package in your browser

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

PoiClaClu documentation built on May 2, 2019, 8:29 a.m.