mcmc.plotPActiveDiagnostic {BTYDplus}R Documentation

Draw diagnostic plot to inspect error in P(active).

Description

Draw diagnostic plot to inspect error in P(active).

Usage

mcmc.plotPActiveDiagnostic(cbs, xstar, title = "Diagnostic Plot for P(active)")

Arguments

cbs

A data.frame with column x and x.star.

xstar

Future transaction draws as returned by mcmc.DrawFutureTransactions.

title

Plot title.

Examples

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)

[Package BTYDplus version 1.2.0 Index]