R/detect_normality_outliers.R

detect.normality.outliers=function(x,alpha=0.05){
  x=x[!is.na(x)]
  mu.x=median(x,na.rm=TRUE)
  var.x=mad(x,na.rm=TRUE)
  x.ok=(1-pnorm(abs(x-mu.x),mean=0,sd=sqrt(var.x))^(length(x)))>alpha
  return(x.ok)
}

Try the fbRanks package in your browser

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

fbRanks documentation built on May 1, 2019, 8:01 p.m.