Last chance! 50% off unlimited learning
Sale ends in
Print an object of class c("abund","dfunc")
that is output by abundEstim
.
# S3 method for abund
print(x, criterion = "AICc", ...)
An object output by abundEstim
. This is a distance function object that
also contains abundance estimates, and has class c("abund", "dfunc")
.
A string specifying the criterion to print.
Must be one of "AICc" (the default),
"AIC", or "BIC". See AIC.dfunc
for formulas.
Included for compatibility to other print methods. Ignored here.
No value is returned.
The default print method for class 'dfunc' is called, then the abundance estimates
contained in obj
are printed.
# NOT RUN {
# Load example sparrow data (line transect survey type)
data(sparrowDetectionData)
data(sparrowSiteData)
# Fit half-normal detection function
dfunc <- dfuncEstim(formula=dist~1,
detectionData=sparrowDetectionData,
likelihood="halfnorm", w.hi=100, pointSurvey=FALSE)
# Estimate abundance given a detection function
# Note, area=10000 converts to density per hectare (for distances measured in meters)
# Note, a person should do more than R=20 iterations
fit <- abundEstim(dfunc, detectionData=sparrowDetectionData,
siteData=sparrowSiteData, area=10000, R=20, ci=0.95,
plot.bs=TRUE, bySite=FALSE)
# Print results
print(fit)
fit
# }
Run the code above in your browser using DataLab