panel_logmeanexp | R Documentation |
This function computes the logmeanexp
for each column
or row of a numeric matrix and sums the result. Because the loglikelihood
of a panelPomp
object is the sum of the loglikelihoods of its units,
this function can be used to summarize replicated estimates of the
panelPomp
model likelihood. If se = TRUE
, the jackknife SE estimates
from logmeanexp
are squared, summed and the squared root is taken.
panel_logmeanexp(x, MARGIN, se = FALSE)
x |
Matrix with the same number of replicated estimates for each panel unit loglikelihood. |
MARGIN |
The dimension of the matrix that corresponds to a panel unit and over which averaging occurs (1 indicates rows, 2 indicates columns). |
se |
logical; whether to give standard errors. |
A numeric
value with the average panel log likelihood or, when
se = TRUE
, a numeric
vector adding the corresponding standard error.
Carles \Breto
panel_loglik
ulls <- matrix(c(1,1,10,10),nr=2)
panel_logmeanexp(ulls,MARGIN=2,se=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.