compute.SCF: Compute the sightability correction factor given a...

View source: R/compute.SCF.R

compute.SCFR Documentation

Compute the sightability correction factor given a sightability and covariates

Description

Compute the sightability correction factor given a sightability and covariates

Usage

compute.SCF(
  data,
  sight.model,
  sight.beta,
  sight.beta.cov,
  check.args = FALSE,
  adjust = TRUE
)

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/

adjust

Should the sightability value be adjusted for the sight.beta.cov.

Value

Vector of sightability factors (SCF)

Author(s)

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

See Also

compute.detect.prob

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.