Title

tvpplot —— Visualize the time-varying coefficients and impulse responses after tvpreg.

Syntax

tvpplot [, plotcoef(namelist) plotvarirf(namelist) horizon(numlist) plotconst period(varname) movavg(#)
noci title(tinfo) ytitle(axis_title) xtitle(axis_title) name(name_option)
tvplegend(string) constlegend(string) bandlegend(string) shadelegend(string) periodlegend(namelist) scheme(schemename) tvpcolor(colorstyle) constcolor(colorstyle) nolegend]

plotcoef(namelist) specifies the parameter name (list) to be plotted.
The parameter name is stored in e(coefname).
To plot the slope parameters, namelist is specified by "yvar1:xvar1 yvar2:xvar2 ..." and locates the parameter to be plotted.
These parameters correspond to the coefficients of the variables xvar# in the equations for yvar#.
To plot the covariance matrix parameters when cholesky is specified,
namelist is
specified by "aij ... li ...",
where aij denotes the i-th row and j-th column element in A(t),
li denotes the i-th element in lnσ(t);
A(t)Σ(e,t)A(t)' = Σ(ε,t)Σ(ε,t)'; σ(t)=diag(Σ(ε,t));
A(t) is a lower-triangular matrix with ones on the main diagonal;
Σ(e,t) is the covariance matrix; and i > j.
To plot the convariance matrix parameters when cholesky is not specified,
namelist is specified by "vij ...",
where vij denotes the i-th row and j-th column element in the covariance matrix Σ(e,t),
and i ≥ j.

plotvarirf(namelist) specifies the parameter name (list) of the time-varying parameter vector autoregression impulse responses to be plotted.
The parameter name is stored in e(varirfname).
namelist is specified as "var1:shock1 var2:shock2 ..." and locates the impulse response to be plotted,
where var (shock) is the variable (shock) of interest.
This option only applies when the estimator option is var.
plotcoef(namelist) and plotvarirf(namelist) cannot be specified together.

plotnhorizon(numlist) specifies the number (list) of horizons to be plotted.
This list must be a subset of the number list in nhorizon(numlist).
The command plots the parameter path over time (horizons)
when plotnhorizon(numlist) specifies a single number (or a list of numbers).
The default is the list specified by nhorizon(numlist).

plotconst includes the constant parameter estimate (a line in the graph).
This option does not apply when the estimator option is weakiv.

period(varname) specifies the dummy variable indicating the time points to be highlighted in the plots.
when plotnhorizon(numlist) specifies a list of numbers, this option indicates the specific time points to be plotted in the parameter paths across horizons.
When plotnhorizon(numlist) specifies a single number, this option adds a background shade in the graph at the selected time points of the parameter path.

movavg(#) specifies the degree of the moving average when ploting a (smoothed) parameter path.
The default is movavg(1).

noci suppresses the confidence band in the figures.
The confidence band is only computed and stored when getband is specified.

title(tinfo) specifies the graph title.
The default is the parameter name.

ytitle(axis_title) specifies y-axis title.
The default is "Parameter."

xtitle(axis_title) specifies x-axis title
The default is "Time" ("Horizons") for parameter path across time (horizons).

tvplegend(string) specifies the legend for the time-varying-parameter estimate.
The default is "Time-varying parameter."

constlegend(string) specifies the legend for the constant-parameter estimate.
The default is "Constant parameter."
This option may be specified only when plotconst is specified.

bandlegend(string) specifies the legend name for the confidence band.
The default is "95% confidence band."
This option may be specified only when getband is specified and noci is not specified.

shadelegend(string) specifies the legend for the background shade.
The default is the variable name specified by period(varname).
This option may be specified only when period(varname) is specified and a single number is specified by plotnhorizon(numlist).

periodlegend(namelist) specifies the legend for the time-varying estimates in different time periods;
namelist is specified by "periodname1,periodname2,...", where the order of names should match the increasing order of time periods.
If this option is not specified, all the time-varying estimates have the same legend specified by tvplegend(string).
This option may be specified only when a list of numbers is specified by plotnhorizon(numlist).

nolegend suppresses the legend.
The legend is displayed only when more than two of the above elements are plotted in the figure.

scheme(schemename) specifies the overall look of the graph.
The default is controled by set scheme.

tvpcolor(colorstyle) specifies the color of the time-varying-parameter estimate.
The default is tvpcolor(green).

constcolor(colorstyle) specifies the color of the constant-parameter estimate.
The default is constcolor(black).

name(name_option) specifies the graph name.
The default is "tvpreg."