compute.detect.prob: Compute the detection probability given a sightability model

View source: R/compute.detect.prob.R

compute.detect.probR Documentation

Compute the detection probability given a sightability model

Description

Compute the detection probability given a sightability model

Usage

compute.detect.prob(
  data,
  sight.model,
  sight.beta,
  sight.beta.cov,
  check.args = FALSE
)

Arguments

data

Data.frame containing covariates for sightability model

sight.model

Formula with sightability model

sight.beta

Parameter estimates (from fitted sightability model

sight.beta.cov

Estimated variance-covariance matrix for parameter estimates from fitted sightability model.

check.args

Should the sightability model arguments be checked for consistency/

Value

Vector of detection probabilities

Author(s)

Schwarz, C. J. cschwarz.stat.sfu.ca@gmail.com.

See Also

compute.SCF

Examples

sightability.table <- data.frame(VegCoverClass=1:5)
sight.beta <- c(4.2138, -1.5847)
sight.beta.cov <- matrix(c(0.7821634, -0.2820000,-0.2820000,  0.1114892), nrow=2)
sightability.table$detect.prob <- compute.detect.prob( sightability.table, 
                                                      ~VegCoverClass, 
                                                      sight.beta, 
                                                      sight.beta.cov)
sightability.table$SCF         <- compute.SCF        ( sightability.table,
                                                       ~VegCoverClass, 
                                                       sight.beta, 
                                                       sight.beta.cov)
sightability.table
#"Note that the SCF != 1/detect.prob because of correction terms for covariance of beta.terms"


SightabilityModel documentation built on Aug. 20, 2023, 1:08 a.m.