Description Usage Arguments Details Value Author(s) References Examples

Estimates population abundance by 1) fitting a sightability (logistic regression) model to "test trial" data; 2) applying the fitted model to independent (operational) survey data to correct for detection rates < 1.

1 2 3 4 5 6 7 8 9 10 11 12 13 |

`form` |
a symbolic description of the sightability model to be fit (e.g., "y ~ x1 + x2 + ..."), where y is a binary response variable (= 1 if the animal is seen and 0 otherwise) and x1, x2, ... are a set of predictor variables thought to influence detection |

`sdat` |
'sightability' data frame. Each row represents an independent sightability trial, and columns contain the response (a binary random variable = 1 if the animal was observed and 0 otherwise) and the covariates used to model detection probabilities. |

`odat` |
'observational survey' data frame containing the following
variable names ( |

`sampinfo` |
data frame containing sampling information pertaining to the
observational survey. Must include the following variables ( |

`method` |
method for estimating variance of the abundance estimator. Should be one of ("Wong", "SS"). See details for more information. |

`logCI` |
Boolean variable, default (= TRUE), indicates the confidence interval should be constructed under the assumption that (tau^ - T) has a lognormal distribution, where T is the total number of animals observed (see details) |

`alpha` |
type I error rate for confidence interval construction |

`Vm.boot` |
Boolean variable, when = TRUE indicates a bootstrap should be used to estimate cov(theta[i,j],theta[i',j']), var/cov matrix of the expansion factors (1/detection prob) |

`nboot` |
number of bootstrap replicates to use if Vm.boot = TRUE |

`bet` |
regression parameters (if the sightability model is not to be fit by Sight.Est). Make sure the order is consistent with the specification in the "form" argument. |

`varbet` |
variance-covariance matrix for beta^ (if the sightability model is not to be fit by Sight.Est). Make sure the order is consistent with the specification in the "form" argument. |

Variance estimation methods: method = Wong implements the variance estimator from Wong (1996) and is the recommended approach. Method = SS implements the variance estimator of Steinhorst and Samuel (1989), with a modification detailed in the Appendix of Samuel et al. (1992).

Estimates of the variance may be biased low when the number of test trials used to estimate model parameters is small (see Wong 1996, Fieberg and Giudice 2008). A bootstrap can be used to aid the estimation process by specifying Vm.boot = TRUE [note: this method is experimental, and can be time intensive].

Confidence interval construction: often the sampling distribution of tau^ is skewed right. If logCI = TRUE, the confidence interval for tau^ will be constructed under an assumption that (tau^ - T) has a lognormal distribution, where T is the total number of animals seen. In this case, the upper and lower limits are constructed as follows [see Wong(1996, p. 64-67)]:

LCL = T + [(tau^-T)/C]*sqrt(1+cv^2), UCL = T+[(tau^-T)*C]*sqrt(1+cv^2), where cv^2 = var(tau^)/(tau^-T)^2 and C = exp[z[alpha/2]*sqrt(ln(1+cv^2))].

An object of class `sightest`

, a list that includes the
following elements:

`sight.model` |
the fitted sightability model |

`est` |
abundance estimate [tau.hat] and its estimate of uncertainty [Vartot] as well as variance components due to sampling [Varsamp], detection [VarSight], and model uncertainty [VarMod] |

The list also includes the original test trial and operational survey data, sampling information, and information needed to construct a confidence interval for the population estimate.

John Fieberg, Wildlife Biometrician, Minnesota Department of Natural Resources

Fieberg, J. 2012. Estimating Population Abundance Using Sightability Models: R SightabilityModel Package. Journal of Statistical Software, 51(9), 1-20. URL https://doi.org/10.18637/jss.v051.i09.

Fieberg, John and Giudice, John. 2008 Variance of Stratified Survey Estimators With Probability of Detection Adjustments. Journal of Wildlife Management 72:837-844.

Samuel, Michael D. and Steinhorst, R. Kirk and Garton, Edward O. and Unsworth, James W. 1992. Estimation of Wildlife Population Ratios Incorporating Survey Design and Visibility Bias. Journal of Wildlife Management 56:718-725.

Steinhorst, R. K., and M.D. Samuel. 1989. Sightability adjustment methods for aerial surveys of wildlife populations. Biometrics 45:415-425.

Wong, C. 1996. Population size estimation using the modified Horvitz-Thompson estimator with estimated sighting probabilities. Dissertation, Colorado State University, Fort Collins, USA.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | ```
# Load data frames
data(obs.m) # observational survey data frame
data(exp.m) # experimental survey data frame
data(sampinfo.m) # information on sampling rates (contained in a data frame)
# Estimate population size in 2007 only
sampinfo <- sampinfo.m[sampinfo.m$year == 2007,]
Sight.Est(observed ~ voc, odat = obs.m[obs.m$year == 2007,],
sdat = exp.m, sampinfo, method = "Wong",
logCI = TRUE, alpha = 0.05, Vm.boot = FALSE)
# BELOW CODE IS SOMEWHAT TIME INTENSIVE (fits models using 2 variance estimators to 3 years of data)
# Estimate population size for 2004-2007
# Compare Wong's and Steinhorst and Samuel variance estimators
tau.Wong <- tau.SS <- matrix(NA,4,3)
count <- 1
for(i in 2004:2007){
sampinfo <- sampinfo.m[sampinfo.m$year == i,]
# Wong's variance estimator
temp <- Sight.Est(observed ~ voc, odat = obs.m[obs.m$year == i,],
sdat = exp.m, sampinfo, method = "Wong",
logCI = TRUE, alpha = 0.05, Vm.boot = FALSE)
tau.Wong[count, ] <- unlist(summary(temp))
# Steinhorst and Samuel (with Samuel et al. 1992 modification)
temp <- Sight.Est(observed ~ voc, odat = obs.m[obs.m$year == i,],
sdat = exp.m, sampinfo, method = "SS")
tau.SS[count, ] <- unlist(summary(temp))
count<-count+1
}
rownames(tau.Wong) <- rownames(tau.SS) <- 2004:2007
colnames(tau.Wong) <- colnames(tau.SS) <- c("tau.hat","LCL","UCL")
(tau.Wong <- apply(tau.Wong, 1:2,
FUN=function(x){as.numeric(gsub(",", "", x, fixed = TRUE))}))
(tau.SS <- (tau.Wong <- apply(tau.Wong, 1:2,
FUN = function(x){as.numeric(gsub(",", "", x, fixed = TRUE))})))
## Not run:
require(gplots)
par(mfrow = c(1,1))
plotCI(2004:2007-.1, tau.Wong[,1], ui = tau.Wong[,3],
li = tau.Wong[,2], type = "l", xlab = "",
ylab = "Population estimate", xaxt = "n",
xlim=c(2003.8, 2007.2))
plotCI(2004:2007+.1, tau.SS[,1], ui = tau.SS[,3], li = tau.SS[,2],
type = "b", lty = 2, add = TRUE)
axis(side = 1, at = 2004:2007, labels = 2004:2007)
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.