fitted.mcmc_output | R Documentation |
Returns summary statistics from the posterior predictive distribution of the mean.
## S3 method for class 'mcmc_output'
fitted(object, model, probs = c(0.025, 0.975), ...)
object |
Results object of class |
model |
A |
probs |
Numeric vector defining the quantiles of interest. Default is
|
... |
Ignored. |
prior <- uniform(0.1 * sd(log10(UKgas)), 0, 1)
model <- bsm_lg(log10(UKgas), sd_y = prior, sd_level = prior,
sd_slope = prior, sd_seasonal = prior, period = 4)
fit <- run_mcmc(model, iter = 1e4)
res <- fitted(fit, model)
head(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.