check.sightability.model.args {SightabilityModel}R Documentation

Check the sightability model arguments for consistency

Description

Check the sightability model arguments for consistency

Usage

check.sightability.model.args(data, sight.model, sight.beta, sight.beta.cov)

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.

Value

Error condition or invisible

Author(s)

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

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)
check.sightability.model.args( sightability.table, 
                               ~VegCoverClass, 
                               sight.beta, 
                               sight.beta.cov)
## Not run: 
check.sightability.model.args( sightability.table, 
                              ~VegCoverClass2, 
                              sight.beta,
                              sight.beta.cov)
check.sightability.model.args( sightability.table, 
                               ~VegCoverClass,
                                sight.beta[1],
                               sight.beta.cov)

## End(Not run)


[Package SightabilityModel version 1.5.5 Index]