logLik.dsmodel: log-likelihood value for a fitted detection function

Description Usage Arguments Value Author(s) Examples

View source: R/logLik.dsmodel.R

Description

Extract the log-likelihood from a fitted detection function.

Usage

1
2
## S3 method for class 'dsmodel'
logLik(object, ...)

Arguments

object

a fitted detection function model object

...

included for S3 completeness, but ignored

Value

a numeric value giving the log-likelihood with two attributes: "df" the "degrees of freedom" for the model (number of parameters) and "nobs" the number of observations used to fit the model

Author(s)

David L Miller

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(Distance)
data(minke)
model <- ds(minke, truncation=4)
# extract the log likelihood
logLik(model)

## End(Not run)

Distance documentation built on Jan. 13, 2021, 10:43 p.m.