print.abund: Print abundance estimates

View source: R/print.abund.r

print.abundR Documentation

Print abundance estimates

Description

Print an object of class c("abund","dfunc") that is output by abundEstim.

Usage

## S3 method for class 'abund'
print(
  x,
  criterion = "AICc",
  maxBSFailPropForWarning = RdistanceControls()$maxBSFailPropForWarning,
  ...
)

Arguments

x

An object output by abundEstim. This is a distance function object that also contains abundance estimates, and has class c("abund", "dfunc").

criterion

A string specifying the criterion to print. Must be one of "AICc" (the default), "AIC", or "BIC". See AIC.dfunc for formulas.

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.

Details

The default print method for class 'dfunc' is called, then the abundance estimates contained in obj are printed.

Value

No value is returned.

See Also

dfuncEstim, abundEstim

Examples

# 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)


Rdistance documentation built on July 9, 2023, 6:46 p.m.