This is the basic computing engine that hbstm
uses to fit Hierarchical Bayesian Space Time models. In general, this should not be used directly, unless by experienced users.
hbstm.fit(HBSTM,nIter,nBurn,time,timerem,plots,posterior,save)
An object of class "HBSTM"
.
Number of Gibbs Sampling iterations. Default value is 1000.
Number of burn-in samples. This number of samples will be discarded before making any inference. Default value is the 20 percent of nIter.
A "logical"
indicating whether the method shows the estimated time of execution.
A "logical"
indicating whether the method shows the estimated remaining time of execution.
A "logical"
indicating whether the method shows the plots of the execution (the mse, Zt vs K*Yt and the ACF/PACF of the residuals
A "character"
indicating whether the function returns the mean and the standard deviation of the fitted values of Yt or returns the median with its 95 percent credibility intervals.
A "character"
indicating if, for each iteration, the algorithm save the estimation of certain parameters. See "Details" for more information.
The save
argument is a "character"
that can have any of the following options:
-"all"
: Save an object of class Parameters
.
-"Mu"
: Save an object of class Mu
.
-"Mt"
: Save an object of class Mt
.
-"Xt"
: Save an object of class Xt
.
Overview: HBSTM-package
Classes : '>HBSTM,'>Parameters,'>Mu,'>Mt,'>Xt,'>Autoregressive,'>Seas,'>SpatParam,'>VectSubdiag,
'>Hyperpriors,'>Mu0,'>Mt0,'>Xt0,'>Seas0,'>Autoregressive0,'>SpatParam0,'>VectSubdiag0
Methods : hbstm,hbstm.fit,results,estimation,resid,mse
Plot : plotRes,plotFit
Data: hirlam,coordinates
# NOT RUN {
## See 'tutorial.pdf', included in the documentation of the package, to see a full example
# }
Run the code above in your browser using DataLab