R/hpsi.R

hpsi <-
function(x,bend=1.28){
#
#   Evaluate Huber`s Psi function for each value in the vector x
#   The bending constant defaults to 1.28.
#
hpsi<-ifelse(abs(x)<=bend,x,bend*sign(x))
hpsi
}
musto101/wilcox_R documentation built on May 23, 2019, 10:52 a.m.