print.abund | R Documentation |
Print an object of class c("abund","dfunc")
that is output by abundEstim
.
## S3 method for class 'abund'
print(
x,
criterion = "AICc",
maxBSFailPropForWarning = RdistanceControls()$maxBSFailPropForWarning,
...
)
x |
An object output by |
criterion |
A string specifying the criterion to print.
Must be one of "AICc" (the default),
"AIC", or "BIC". See |
maxBSFailPropForWarning |
The proportion of bootstrap iterations that can fail without a warning. If the proportion of bootstrap iterations that did not converge exceeds this parameter, a warning about the validity of CI's is issued and a diagnostic message printed. Increasing this to a number greater than 1 will kill the warning, but ignoring a large number of non-convergent bootstrap iterations may be a bad idea (i.e., validity of the CI is questionable). |
... |
Included for compatibility to other print methods. Ignored here. |
The default print method for class 'dfunc' is called, then the abundance estimates
contained in obj
are printed.
No value is returned.
dfuncEstim
, abundEstim
# Load example sparrow data (line transect survey type)
data(sparrowDetectionData)
data(sparrowSiteData)
# Fit half-normal detection function
dfunc <- dfuncEstim(formula=dist ~ 1 + offset(groupsize)
, detectionData=sparrowDetectionData)
# Estimate abundance given a detection function
# Note: a person should do more than R=20 bootstrap iterations
fit <- abundEstim(dfunc
, detectionData = sparrowDetectionData
, siteData = sparrowSiteData
, area = units::set_units(4105, "km^2")
, R=20
, ci=0.95)
# Print results
print(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.