Learn R Programming

Distance (version 1.0.3)

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

Description

Extract the log-likelihood from a fitted detection function.

Usage

# S3 method for 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 "egrees of freedom for the model (number of parameters) and "nobs" the number of observations used to fit the model

Examples

Run this code
# NOT RUN {
library(Distance)
data(minke)
model <- ds(minke, truncation=4)
# extract the log likelihood
logLik(model)
# }

Run the code above in your browser using DataLab