Predict probability of detection from a VGLM SNR-detection function
Source:R/callDensitySupport.R
predVglmPDet.RdHelper that combines the per-observer detection probability and the "any-observer detected" probability from a fitted VGLM into a single marginal probability of detection at each supplied SNR.
Arguments
- snrDetFun.vglm
A fitted VGLM SNR-detection function (e.g. from
fitSNRvglm) carrying@extra$whichObserver.- snrs
A data.frame with at least one column named
SNR, giving the SNR values at which to predict the probability of detection.- whichObserver
Character. Name of the observer column to use for predictions. Defaults to
snrDetFun.vglm@extra$whichObserver(the observer baked into the fitted model byfitSNRvglm).