posterior: Calcualte the posterior distribution of a Bass Diffusion...

Description Usage Arguments Examples

View source: R/predict-bass-model.R

Description

This function returns a prediction based on the MCMC sampled rjags chains. The point in time of prediction corresponds to the given time_index

Usage

1
posterior(x, time_index = 1)

Arguments

time_index

Examples

1
2
3
4
data(adoption_data)
model <- bayesian_bass_model()
fit <- bayesian_bass(data = adoption_data, var = "adoption", model = model)
posterior(fit, time_index = 1)

jnshsrs/bayesianbass documentation built on Jan. 11, 2021, 1:40 a.m.