add_prior_anomaly | R Documentation |
Add a prior on the probability of an anomaly
add_prior_anomaly(priors, prob)
priors |
A list containing other, already defined, priors. If NULL, a
list will be started with |
prob |
The |
A list that includes a list named anomaly
, which is a list with a
prob
key-value pair.
add_prior_trend()
, add_prior_level()
, add_prior_error()
,
add_prior_seasonality()
ps <- add_prior_anomaly(priors = list(), prob = 0.01)
print(ps)
# overwrites the existing entry
ps <- add_prior_anomaly(priors = ps, prob = 0.05)
print(ps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.