predicted | R Documentation |
Pass in rstanfit
model object. Returns array of predictions, dimensioned
number of MCMC draws x number of MCMC chains x time series length x number of time series
predicted(fitted_model)
fitted_model |
Samples extracted (with |
## Not run:
set.seed(42)
s <- sim_dfa(num_trends = 1, num_years = 20, num_ts = 3)
# only 1 chain and 1000 iterations used so example runs quickly:
m <- fit_dfa(y = s$y_sim, iter = 2000, chains = 3, num_trends = 1)
pred <- predicted(m)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.