panel_loglik | R Documentation |
Handling of loglikelihood replicates.
## S4 method for signature 'matrix'
logLik(object, repMargin, first = "aver", aver = "logmeanexp", se = FALSE)
object |
Matrix with the same number of replicated estimates for each panel unit loglikelihood. |
repMargin |
The margin of the matrix having the replicates (1 for rows, 2 for columns). |
first |
Wether to |
aver |
How to average: |
se |
logical; whether to give standard errors. |
When se = TRUE
, the jackknife se's from
pomp::logmeanexp
are squared, summed and the squared root is taken.
numeric
vector with the average panel log likelihood and, when
se = TRUE
, the corresponding standard error.
Carles \Breto
Other panelPomp workhorse functions:
mif2()
,
panelPomp
,
pfilter()
ulls <- matrix(c(1,1.1,10.1,10),nr=2)
# when combining log likelihood estimates, the order in which aggregation and
# averaging are done can make a difference: panel_logmeanexp() implements the best
logLik(ulls,repMargin=1,first="aver",aver="logmeanexp")
logLik(ulls,repMargin=1,first="aggr",aver="mean",se=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.