View source: R/logLik.scampr.R
logLik.scampr | R Documentation |
Marginal log-likelihood for objects of class 'scampr'
## S3 method for class 'scampr'
logLik(object, ...)
object |
a scampr model |
... |
Optionally, additional scampr model objects |
numeric describing the approximate marginal log-likelihood of the scampr model object
# Get the gorilla nesting data
dat <- gorillas
# Standardise the elevation covariate
dat$elev.std <- scale(dat$elevation)
# Fit a scampr model to the point pattern
m <- scampr(pres ~ elev.std, data = dat, model.type = "PO", include.sre = F)
logLik(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.