get_prior {bayesforecast} | R Documentation |
Get the prior distribution of a model parameter
Description
The functions gets the defined distribution of a defined model parameter
Usage
get_prior(model,par,lag = 0)
Arguments
model |
a time series model class specified in bayesforecast. |
par |
a string value with the desired parameter to impose a prior.
Possible arguments are: |
lag |
an optional integer value, indicates the desired parameter's lag to
impose a prior. If |
Value
None. Prints the prior distribution of a desired parameter.
Author(s)
Asael Alonzo Matamoros
Examples
# get all the ar parameters
dat = Sarima(birth,order = c(2,1,2))
get_prior(model = dat,par = "ar")
# change the mean constant parameter
dat = set_prior(model = dat,par = "mu0",dist = student(0,2.5,7))
get_prior(dat,par = "mu0")
# change and print only the second ma parameter
dat = set_prior(model = dat,par = "ma",dist = beta(2,2),lag = 2)
get_prior(dat,par = "ma")
[Package bayesforecast version 1.0.5 Index]