compute.SCF | R Documentation |
Compute the sightability correction factor given a sightability and covariates
compute.SCF(
data,
sight.model,
sight.beta,
sight.beta.cov,
check.args = FALSE,
adjust = TRUE
)
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. |
Vector of sightability factors (SCF)
Schwarz, C. J. cschwarz.stat.sfu.ca@gmail.com.
compute.detect.prob
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.