Description Details References Examples
This package will allow the user to call the MCDS engine from Distance 6.2 in the R environment.
Package: | R2MCDS |
Type: | Package |
Version: | 0.9.1 |
Date: | 2017-08-20 |
License: | GPL-2 |
LazyLoad: | yes |
S.T. Buckland, D.R. Anderson, K.P. Burnham, J.L Laake, D.L. Borchers and L. Thomas. 2001. Introduction to Distance Sampling. Estimating abundance of biological populations. Oxford University Press.
Royle, J. A., D. K. Dawson, and S. Bates. 2004. Modeling abundance effects in distance sampling. Ecology 85:1591-1597
Fiske, I. and R. B. Chandler. 2011. unmarked: An R package for fitting hierarchical models of wildlife occurrence and abundance. Journal of Statistical Software 43:1-23.
Thomas, L., S.T. Buckland, E.A. Rexstad, J. L. Laake, S. Strindberg, S. L. Hedley, J. R.B. Bishop, T. A. Marques, and K. P. Burnham. 2010. Distance software: design and analysis of distance sampling surveys for estimating population size. Journal of Applied Ecology 47: 5-14.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ########################################
### Simple models without stratification
### Import and filter data
data(alcidae)
alcids <- mcds.filter(alcidae, transect.id = "WatchID", distance.field = "Distance", distance.labels = c("A", "B", "C", "D"),
distance.midpoints = c(25, 75, 150, 250), effort.field = "WatchLenKm", lat.field = "LatStart",
long.field = "LongStart", sp.field = "Alpha", date.field = "Date")
### Run analysis with the MCDS engine. Here, the WatchID is used as the sample.
dist.out1 <- mcds.wrap(alcids, SMP_EFFORT="WatchLenKm",DISTANCE="Distance",SIZE="Count",Type="Line",
units=list(Distance="Perp",Length_units="Kilometers",
Distance_units="Meters",Area_units="Square kilometers"),
breaks=c(0,50,100,200,300), estimator=list(c("HN","CO")),
STR_LABEL="STR_LABEL", STR_AREA="STR_AREA",SMP_LABEL="WatchID",
path="c:/temp/distance",
pathMCDS="C:/Distance 6",verbose=FALSE)
summary(dist.out1)
##END
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.