R/integratelogistic.R

integratelogistic <- function (x, models, beta, lower=0, width, point){
  # computes integral (numerically) over x from 0 to width of a
  # logistic detection function

  integrate(logisticbyx, lower=lower, upper=width,
            subdivisions=10, rel.tol=0.01, abs.tol=0.01,
            x=x, models=models, beta=beta, point=point)$value
}

Try the mrds package in your browser

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

mrds documentation built on July 9, 2023, 6:06 p.m.