Learn R Programming

mrds (version 2.3.0)

average.line.cond: Average conditional detection function line for plotting

Description

For models with covariates the detection probability for each observation can vary. This function computes an average value for a set of distances to plot an average line to graphically represent the fitted model in plots that compare histograms and the scatter of individual estimated detection probabilities.

Usage

average.line.cond(finebr, obs, model)

Value

list with 2 elements:

xgridvector of gridded distance values
valuesvector of average detection function values at the xgrid values

Arguments

finebr

set of fine breaks in distance over which detection function values are averaged and plotted

obs

value of observer for averaging (1-2 individual observers)

model

ddf model object

Author

Jeff Laake