Description Usage Arguments Value Examples
View source: R/bayesian-bass-model.R
Function to fit Bayesian Model
1 2 3 4 5 6 7 8 | bayesian_bass(
data,
var,
model,
n_iter = 5000,
n_thin = 50,
plot_diagnostics = FALSE
)
|
data |
A data.frame with two columns, the first must be named jahr and contains time index, the second colum is named var and is a binary variable, representing |
var |
Column name of variable containing the dichotomous data of product adoption |
model |
Text string containing the Bayesian Model Specification |
n_iter |
Integer, number of iterations |
plot_diagnostics |
Wether to show diagnostic MCMC plots |
introduction |
Integer, if provided, the time column of data is rescaled to the date of market introduction |
An object of class bayesian_bass
1 2 3 | data(adoption_data)
model <- bayesian_bass_model()
fit <- bayesian_bass(data = adoption_data, var = "adoption", model = model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.