coef.dfunc: Coefficients of an estimated detection function

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

Description

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

Usage

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

...

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

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.

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.

Author(s)

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

See Also

AIC, dfuncEstim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Load example sparrow data (line transect survey type)
data(sparrowDetectionData)

# Fit half-normal detection function
dfunc <- dfuncEstim(formula=dist~1,
                    detectionData=sparrowDetectionData,
                    likelihood="halfnorm", w.hi=100, pointSurvey=FALSE)

# Print results
dfunc
  
# Extract the coefficient(s)
coef(dfunc)

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