print.dfunc: Print a distance function object

View source: R/print.dfunc.r

print.dfuncR Documentation

Print a distance function object


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


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



An estimated distance function resulting from a call to dfuncEstim.


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.


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.


The input value of obj is invisibly returned.

See Also

dfuncEstim, plot.dfunc, print.abund


# Load example sparrow data (line transect survey type)

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

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

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