Description Usage Arguments Details Value
This function takes fitted values from a log-transformed forecast models and uses those as predictors in a Negative Binomial regression to model the discrete outcome time series. Multivariate covariance dependencies are incorporated via multivariate normal intercepts
1 2 3 4 5 6 7 8 9 10 11 12 13 | fc_jags_mv(
y,
model = "arima",
horizon,
frequency,
use_nb = TRUE,
n.chains = 2,
n.adapt = 1000,
n.burnin = 10000,
n.iter = 10000,
thin = 10,
auto_update = TRUE
)
|
y |
|
model |
|
horizon |
|
frequency |
|
use_nb |
|
n.chains |
|
n.adapt |
|
n.iter |
|
auto_update |
|
The discrete series are first log-transformed and interpolated to fit univariate forecast models. Fitted values from the forecast models are then used as predictors in a Negative Binomial Bayesian regression to model the raw discrete series, while inter-series dependencies are captured using a multivariate normal intercept
A list
containing the posterior forecast from the forecast model and the original fitted
jags.model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.