mcmc.plotPActiveDiagnostic | R Documentation |
Draw diagnostic plot to inspect error in P(active).
mcmc.plotPActiveDiagnostic(cbs, xstar, title = "Diagnostic Plot for P(active)")
cbs |
A data.frame with column |
xstar |
Future transaction draws as returned by
|
title |
Plot title. |
data("groceryElog")
cbs <- elog2cbs(groceryElog, T.cal = "2006-12-31")
param.draws <- pnbd.mcmc.DrawParameters(cbs,
mcmc = 100, burnin = 50, thin = 10, chains = 1) # short MCMC to run demo fast
xstar.draws <- mcmc.DrawFutureTransactions(cbs, param.draws)
mcmc.plotPActiveDiagnostic(cbs, xstar.draws)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.