Learn R Programming

Rdistance (version 1.3.2)

coef.dfunc: Coefficients of an estimated detection function

Description

Extract the coefficients and estimated parameters (if any) from a estimated detection function object.

Usage

# S3 method for dfunc
coef(object, …)

Arguments

object

An estimated distance function object. An estimated distance function object has class 'dfunc', and is usually produced by a call to F.dfunc.estim.

Required for compatability with the general coef method. Any extra arguments to this function are ignored.

Value

The estimated parameter vector for the detection function. Length and interpretation of values in this vector vary depending on the form of the detection function and expansion terms.

Details

This is an extractor function for the parameters of an estimated detection function. This function is equivalent to obj$parameters for classical detection functions.

See Also

AIC, F.dfunc.estim

Examples

Run this code
# NOT RUN {
# Load the example dataset of sparrow detections from package
data(sparrow.detections)

# Fit detection function to perpendicular, off-transect distances
dfunc <- F.dfunc.estim(sparrow.detections, w.hi=150)

# Extract the coefficient(s)
coef(dfunc)
# }

Run the code above in your browser using DataLab