Description Usage Arguments Details Value
This function takes fitted values from a log-transformed forecast model and uses those as a predictor in a Negative Binomial regression to predict the discrete outcome time series
1 2 3 4 5 6 7 8 9 10 11 12 13 | fc_jags_uni(
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 is first log-transformed and interpolated to fit a forecast model. Fitted values from the forecast model are then used as a predictor in a Negative Binomial Bayesian regression to model the raw discrete series
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.