Description Usage Arguments Value Examples
Calculates P(alive) based on MCMC parameter draws
1 | mcmc.PAlive(draws)
|
draws |
MCMC draws as returned by |
Numeric vector with the customers' probabilities of being still alive at end of calibration period
1 2 3 4 5 6 7 | 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.