excodeModel Class
excodeModel-class.RdThe `excodeModel` class is a generic container for the model used for outbreak detection based on a hidden Markov model framework.
Slots
nStatesNumber of states in the hidden Markov model.
emissionEmission component of the hidden Markov model, including an `excodeFamily` and an `excodeFormula` object.
transitionsTransition probabilities of the hidden Markov model.
transitions_priorLogical indicating whether a prior for transition probabilities should be used.
prior_weightsDirichlet prior weights for transition probabilities; cannot be changed by the user.
loglik_transitionsPrior log-likelihood of transition probabilities; only relevant for model fitting.
initial_probInitial state probabilities of the hidden Markov model.
setBckgStateLogical indicating whether a background state should be computed for model fitting; background states are set to 0 for time points where the Anscombe residuals of the initial model are < 1.
convergedLogical indicating whether the EM algorithm converged.
niterNumber of iterations used for model fitting.
LogLikLog-likelihood of the fitted model.
AICAkaike information criterion of the fitted model.
BICBayesian information criterion of the fitted model.
posteriorMatrix of posterior probabilities for each time point (rows) and state (columns).
pvalP-values for testing whether each time point is in a normal or excess state.
zscoreStandardized Anscombe residuals (z-scores) for each time point.
timepoint_fitNumeric time point in the time series used for fitting.
timepointNumeric time point in the time series.
dateDate corresponding to each time point.
observedVector of observed counts or case numbers.
populationPopulation size; default is 1.
errorCharacter string containing an error message, if an error occurred during model fitting.