print.abund: Print abundance estimates

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
2
## S3 method for class '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.

Details

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

Value

No value is returned.

Author(s)

Trent McDonald, WEST Inc., tmcdonald@west-inc.com

See Also

dfuncEstim, abundEstim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# 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

Rdistance documentation built on May 2, 2019, 3:49 a.m.