Learn R Programming

Rdistance (version 2.1.3)

print.abund: Print abundance estimates

Description

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

Usage

# S3 method for abund
print(x, criterion = "AICc", ...)

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.

Included for compatibility to other print methods. Ignored here.

Value

No value is returned.

Details

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

See Also

dfuncEstim, abundEstim

Examples

Run this code
# 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