R/pchi.r

"pchi" <-
function(q, df = 2, lower.tail = TRUE, ...)
  {
    ploum <- function(y)
      dchi(y,df)
    res <- sapply(q, function(i) integrate(ploum,0,i,...)$value)
    if (lower.tail)
      return(res)
    return(1-res)
  }

Try the adehabitat package in your browser

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

adehabitat documentation built on Jan. 28, 2018, 5:02 p.m.