Description Usage Arguments Value Author(s) See Also Examples
Extract the log likelihood attribute an object of class
"mleDb"
or "mleBb"
. I.e. obtain the maximum log
likelihood in respect of the estimation of the parameters of a
db or beta-binomial distribution.
1 2 3 4 |
object |
An object of class |
... |
Not used. |
An object of class "logLik"
, which consists of
a numeric scalar equal to the maximum log likelihood for the parameters
of a db or beta-binomial distribution. It has an attribute "df"
equal to 2.
Rolf Turner r.turner@auckland.ac.nz
1 2 3 4 5 6 7 8 9 | X <- hmm.discnp::SydColDisc
X$y <- as.numeric(X$y)
X <- split(X,f=with(X,interaction(locn,depth)))
fitz <- lapply(X,function(x){mleDb(x$y,ntop=5)})
sapply(fitz,logLik)
X <- hrsRcePred
top1e <- X[X$sbjType=="Expert","top1"]
fit <- mleBb(top1e,10)
logLik(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.