Compute the Average Loss of Hidden State Changes from Expected Break Points
BreakPointLoss(model.list, waic = FALSE, display = TRUE)BreakPointLoss returns five objects. They are: ave.loss the expected loss for each model
computed by the mean sqaured distance of hidden state changes from the expected break points.
logmarglike the natural log of the marginal likelihood for each model; State sampled state vectors;
Tau expected break points for each model; and Tau.samp sampled break points from hidden state draws.
MCMC output objects. These have to be of class
mcmc and have a logmarglike attribute. In what
follows, we let M denote the total number of models to be
compared.
If waic is TRUE, waic(Watanabe information criterion) will be reported.
If display is TRUE, a plot of ave.loss will be produced.
BreakPointLoss. ave.loss, logmarglike, State, Tau, Tau.samp
Jong Hee Park and Yunkyun Sohn. 2020. "Detecting Structural Change in Longitudinal Network Data." Bayesian Analysis. Vol.15, No.1, pp.133-157.