prints tsmats or a comparison between3 of them
prt_tsmat(type_prt,bounds_prt,db,vari,nseriespertab,out)
* type_prt = 'pcer', 'diff', 'level', 'growth rate'
- 'pcer' = calculate the percentage differences between the db with repsect to the first one
- 'diff' = calculate the differences between the db with repsect to the first one
- 'level' = presents the databases one by one
- 'growth rate' = presents the growth rate of the chosen variables in the databases one by one
* bounds_prt = a string vetor of even size or of size 1
* db =
- a list of tsmat
- or a string vector of names of tsmast between quotes
- or a tsmat
* vari = a matrix of strings containing elements among these:
- names of variables existing in the tsmat(s)
- the keyword 'all' if you want to print all variables (note: if you want to display the values of peculiar types of variables frome a model (say mymodel), such as 'endogenous', 'exoegnous' or 'residuals', then enter mymodel('name endo'), etc.)
* nseriespertab = a scalar, the maximum #of series you want to be displayed at a time (optional argument: if not given, then all series are displayed in the same tab, whcich may lead to a very large tab)
* nseriespertab = a scalar, the maximum # of series you want to be displayed at a time (optional argument: if not given, the all series are displayed in the same tab, whcich may lead to a veyr large tab)
* nothing: all results are sent to the output file
// load the database associated to the "small" model: global GROCERDIR; load(GROCERDIR+'\data\small_db.dat') // print the values of the variables demon, time, trim and trim2 in this database for the // period 1990q1 to 2006q4 prt_tsmat('level',['1990q1';'2006q4'],list('small_db'),['demmon';'time';'trim1';'trim2']) // print the growth rate of the variables demon, td_pib1, td_pib3 and td_pib5 in this database for the // period 2006q1 to 2007q4 prt_tsmat('growth rate',['1990q1';'2006q4'],list('small_db'),['demmon';'td_pib1';'td_pib3';'td_pib5']) load(GROCERDIR+'\data\small.dat') // load the database small_db // simulate the small model with database small_db from 1981q1 to 2006q4, keeping // the data from 1978q1 and using the lagged endogenous variables as starting values sim_histo=simulate(small,small_db,'1981q1','2006q4',1,'1978q1','2006q4') // display the comparison of simulation results with the original database small_db // for variables td_pib1 and td_pib3 prt_tsmat('pcer',['1990q1';'2006q4'],list('small_db','sim_histo(''simulation results'')'),['td_pib1','td_pib3']) | ![]() | ![]() |