add_prior_seasonality | R Documentation |
The Beta distribution defined via alpha
and beta
is the prior on the
\gamma
parameter of the estimated model. For example, if we expect that
the seasonal component should only update slowly over time and thus only use
a small part of the error component, then a small alpha
and larger beta
make sense.
add_prior_seasonality(priors, prob, guess, n, verbose = FALSE, plot = FALSE)
priors |
A list containing other, already defined, priors. If NULL, a
list will be started with |
prob |
Probability that the time series has a seasonality, and that therefore a seasonal component should be included in the model. This parameterizes a Bernoulli distribution and should thus be a value in (0,1). |
guess |
Which |
n |
How much weight (n terms of observations) do you want to give your prior assumption? The larger this value, the more data observations it will take to wash out your prior distribution in case it is misspecified. |
verbose |
Should summarizing information be printed using |
plot |
Should a simple plot of the implied Beta density be drawn? |
The mean of the Beta distribution is \mu = \alpha / (\alpha + \beta)
.
If alpha
is smaller or equal than 1, then the density will be highest at 0.
A list that includes a list named seasonality
, which is a list with
prob
, alpha
, and beta
key-value pairs.
add_prior_trend()
, add_prior_level()
, add_prior_error()
,
add_prior_anomaly()
ps <- add_prior_seasonality(
priors = NULL, prob = 0.75, n = 6, guess = 1/6, verbose = TRUE, plot = TRUE
)
print(ps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.