Learn R Programming

Rdistance (version 1.2.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 class 'dfunc':
coef(object, \dots)

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
# Load the example dataset for sparrow detections from package
data(sparrow.detections)

# Compute perpendicular, off-transect distances from the observer's sight distance and angle
sparrow.detections$dist <- perp.dists(obs.dist=sparrow.detections$sightdist,
                                  obs.angle=sparrow.detections$sightangle)

# Fit detection function object
dfunc <- F.dfunc.estim(sparrow.detections, w.hi=150)

# Extract the coefficient(s)
coef(dfunc)

Run the code above in your browser using DataLab