ddCI {dwp}R Documentation

Calculate CI for CDF, PDF, or quantile

Description

Calculate a confidence interval for the CDF, PDF, or quantile of a carcass distance distribution.

Usage

ddCI(
  mod,
  x,
  type = "CDF",
  CL = 0.9,
  nsim = 1000,
  extent = "full",
  zrad = 200,
  na.tol = 0.1
)

Arguments

mod

a dd object

x

distance from turbine (scalar or vector) or probability (for quantile)

type

"CDF", "PDF", or "quantile"

CL

confidence level for the confidence interval(s)

nsim

number of simulation draws to base the estimate of CI on

extent

whether to calculate CI based on the full range of possible data and extrapolating beyond the search radius (extent = "full") or restricting the distribution to the area within the search radius (extent = "win").

zrad

an ad hoc radius to integrate to when the (uncommon) simulated parameter estimates do not result in an extensible distribution. In effect, This replaces NAs with 1s in CDFs and with 0s in PDFs.

na.tol

maximum fraction of invalid parameter sets to discard when constructing CIs; abort if mean(mod[, "extensible"]) > na.tol

Value

array (ddCI class) with columns for distance and the CI bounds


[Package dwp version 1.1 Index]