Learn R Programming

AICcmodavg (version 1.17)

extract.LL.unmarked: Extract Log-Likelihood of Model

Description

This function extracts the log-likelihood from an object of various 'unmarkedFit' classes.

Usage

extract.LL.unmarked(mod)

Arguments

mod
an object of 'unmarkedFit' class resulting from the fit of 'occu', 'occuRN', 'colext', 'pcount', or 'pcountOpen'.

Value

  • 'extract.LL.unmarked' returns the value of the log-likelihood of the model.

Details

This utility function extracts the information from an 'unmarkedFit' object resulting from 'occu', 'occuRN', 'colext', 'pcount', or 'pcountOpen' The function is called by 'AICc.unmarked' and 'aictab.unmarked'.

See Also

AICc, aictab, occu, occuRN, colext, pcount, pcountOpen

Examples

Run this code
##modified example of single-season model with heterogeneity from ?occuRN
require(unmarked)
data(birds)
woodthrushUMF <- unmarkedFrameOccu(woodthrush.bin)

##survey occasion-specific detection probabilities
fm.wood.rn <- occuRN(~ obsNum ~ 1, woodthrushUMF)

##extract log-likelihood
extract.LL.unmarked(fm.wood.rn)

detach(package:unmarked)

Run the code above in your browser using DataLab