View source: R/logLik.dsmodel.R
logLik.dsmodel | R Documentation |
Extract the log-likelihood from a fitted detection function.
## S3 method for class 'dsmodel'
logLik(object, ...)
object |
a fitted detection function model object |
... |
included for S3 completeness, but ignored |
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
David L Miller
## Not run:
library(Distance)
data(minke)
model <- ds(minke, truncation=4)
# extract the log likelihood
logLik(model)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.