mcmc.PAlive | R Documentation |
Calculates P(alive) based on MCMC parameter draws
mcmc.PAlive(draws)
draws |
MCMC draws as returned by |
Numeric vector with the customers' probabilities of being still alive at end of calibration period
data("groceryElog")
cbs <- elog2cbs(groceryElog)
param.draws <- pnbd.mcmc.DrawParameters(cbs,
mcmc = 100, burnin = 50, thin = 10, chains = 1) # short MCMC to run demo fast
palive <- mcmc.PAlive(param.draws)
head(palive)
mean(palive)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.