Description Usage Arguments Details Value Author(s) Examples
Plot the filtered state variables of an estimated DSGE or DSGE-VAR model.
1 2 3 4 5 6 7 8 9 10 |
For objects of class ‘EDSGE’ or ‘DSGEVAR’,
obj |
An object of class ‘EDSGE’ or ‘DSGEVAR’. |
percentiles |
Which percentiles of the distribution to use. |
var_names |
Name labels for the states. |
use_mean |
Whether the user would prefer to use the mean of the forecast distribution rather than the middle value in ‘percentiles’. |
save |
Whether to save the plots. |
height |
If save=FALSE, use this to set the height of the plot. |
width |
If save=FALSE, use this to set the width of the plot. |
... |
Additional arguments (not used). |
This function will work with estimated DSGE and DSGEVAR models.
The function returns a plot of the states with user-selected percentiles, as well as the values used to create the plot; see the vignette for more details on the values returned.
Keith O'Hara
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
NKMest <- EDSGE(dsgedata,chains=1,cores=1,
ObserveMat,initialvals,partomats,
priorform,priorpars,parbounds,par_names,
optimMethod=c("Nelder-Mead","CG"),
optimLower=NULL,optimUpper=NULL,
optimControl=list(maxit=10000),
DSGEIRFs=TRUE,irf.periods=40,
scalepar=0.27,keep=50000,burnin=75000,
tables=TRUE)
#
var_names=c("Output Gap","Output","Inflation","Natural Int",
"Nominal Int","Labour Supply","Technology","MonetaryPolicy")
states(NKMest,percentiles=c(0.01,0.50,0.99),var_names=var_names)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.