Learn R Programming

Rdistance (version 3.0.0)

print.dfunc: Print a distance function object

Description

Print method for distance functions produced by dfuncEstim, which are of class dfunc.

Usage

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

Value

The input value of obj is invisibly returned.

Arguments

x

An estimated distance function resulting from a call to dfuncEstim.

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 with other print methods. Ignored here.

Details

The call, coefficients of the distanced function, whether the estimation converged, the likelihood and expansion function, and other statistics are printed. At the bottom of the output, the following quantities are printed,

  • Strip : The left (w.lo) and right (w.hi) truncation values.

  • Effective strip width or detection radius : ESW or EDR as computed by effectiveDistance.

  • Scaling : The horizontal and vertical coordinates used to scale the distance function. Usually, the horizontal coordinate is 0 and the vertical coordinate is 1 (i.e., g(0) = 1).

  • Log likelihood : Value of the maximized log likelihood.

  • Criterion : Value of the specified fit criterion (AIC, AICc, or BIC).

The number of digits printed is controlled by options()$digits.

See Also

dfuncEstim, plot.dfunc, print.abund

Examples

Run this code
# Load example sparrow data (line transect survey type)
data(sparrowDetectionData)

# Fit half-normal detection function
dfunc <- dfuncEstim(formula=dist~1,
                    detectionData=sparrowDetectionData)

# Print results
dfunc
print(dfunc, criterion="BIC")

Run the code above in your browser using DataLab