R/CutoffN.r

Defines functions CutoffN

CutoffN <- function(res,delta,cu=2.575829,zmax=10,gridsize=2000)
{
# computes cutoff on residual scale
  xs <- seq(from=cu,to=zmax,length=gridsize)
  fs <- apply(as.matrix(xs),1,RappN,res=res,delta=delta)
  alpha <- min(min(fs[2,],na.rm=TRUE),1)
  xu <- max(xs[fs[1,] < alpha],na.rm=TRUE)
  list(alpha=alpha,tu=xu)
}

Try the RobustAFT package in your browser

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

RobustAFT documentation built on Aug. 21, 2023, 5:13 p.m.