R/Izero.R

Defines functions Izero

Izero <- function(tt)
{
# Gives tl for given tt=tu or tu for given tt=tl
  if (tt > 3.81) return(-Inf)
  const <- ezez(tt)
  if (const>=exp(-1)) {warning(paste("No solution for tu =",tt,"\n"));return(tt)}
  if (exp(tt)>-log(const)) {up  <- -log(const); low <- -3*abs(up)} else
                           {low <- -log(const); up  <- 3*abs(low)}
  zz <- uniroot(zez,lower=low,upper=up,const=const)
  log(zz$root)
}

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.