View source: R/compute.detect.prob.R
compute.detect.prob | R Documentation |
Compute the detection probability given a sightability model
compute.detect.prob(
data,
sight.model,
sight.beta,
sight.beta.cov,
check.args = FALSE
)
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/ |
Vector of detection probabilities
Schwarz, C. J. cschwarz.stat.sfu.ca@gmail.com.
compute.SCF
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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.