Provides summary of verifying hypotheses about autoregressive parameters
Provides summary of verifying hypotheses about autoregressive parameters
Provides summary of the Savage-Dickey density ratios for verification of hypotheses about autoregressive parameters.
## S3 method for class 'SDDRautoregression'summary(object,...)
Arguments
object: an object of class SDDRautoregression obtained using the verify_autoregression() function.
...: additional arguments affecting the summary produced.
Returns
A table reporting the logarithm of Bayes factors of the restriction against no restriction posterior odds in "log(SDDR)", its numerical standard error "NSE", and the implied posterior probability of the restriction holding or not hypothesis, "Pr[H0|data]" and "Pr[H1|data]"
respectively.
Examples
# upload datadata(us_fiscal_lsuw)# specify the model and set seedspecification = specify_bsvar_sv$new(us_fiscal_lsuw, p =1)set.seed(123)# estimate the modelposterior = estimate(specification,10)# verify autoregressionH0 = matrix(NA, ncol(us_fiscal_lsuw), ncol(us_fiscal_lsuw)+1)H0[1,3]=0# a hypothesis of no Granger causality from gdp to ttrsddr = verify_autoregression(posterior, H0)summary(sddr)# workflow with the pipe |>############################################################set.seed(123)us_fiscal_lsuw |> specify_bsvar_sv$new(p =1)|> estimate(S =10)|> verify_autoregression(hypothesis = H0)|> summary()-> sddr_summary