statsmodels.tsa.vector_ar.irf.IRAnalysis.plot_cum_effects#
- IRAnalysis.plot_cum_effects(orth=False, *, impulse=None, response=None, signif=0.05, plot_params=None, figsize=(10, 10), subplot_params=None, plot_stderr=True, stderr_type='asym', repl=1000, rng=None, err_bands=None)#
Plot cumulative impulse response functions
- Parameters:
- orthbool,
optional Compute orthogonalized impulse responses. The default is False.
- impulse
strorint,optional Name or index of the variable providing the impulse. If None, plots impulses from all variables.
- response
strorint,optional Name or index of the variable affected by the impulse. If None, plots responses of all variables.
- signif
float,optional Significance level for the confidence interval, between 0 and 1. The default is 0.05, giving a 95% confidence interval.
- subplot_params
dict,optional To pass to subplot plotting functions. Example: if fonts are too big, pass {‘fontsize’ : 8} or some number to your taste.
- plot_params
dict,optional Keyword arguments to pass to the individual plotting functions.
- figsize
tupleoffloat,optional Figure size (width, height in inches). The default is (10, 10).
- plot_stderrbool,
optional Plot standard impulse response error bands. The default is True.
- stderr_type{“asym”, “mc”},
optional The method used to compute the error bands. “asym” computes asymptotic standard errors and is the default. “mc” computes Monte Carlo standard errors using
replreplications.- repl
int,optional Number of replications for Monte Carlo standard errors. The default is 1000.
- rng
int, array_likeofint,numpy.random.Generator,ornumpy.random.RandomState,optional Source of random numbers used for the Monte Carlo replications. If rng is None, a new
Generatoris created using fresh entropy from the operating system. If rng is an int, a newRandomStateinstance is created, seeded with rng; this integer-seeding behavior is deprecated and will change to creating aGeneratorin a future release. If rng is already aGeneratororRandomStateinstance, that instance is used.- seed
int, array_likeofint,numpy.random.Generator,ornumpy.random.RandomState,optional Deprecated since version 0.15: seed has been deprecated. In-line with SPEC-007, use rng for passing a random number generator or seed.
- err_bands
ndarrayofshape(2,periods+ 1,neqs,neqs),optional Pre-computed error bands. The first dimension contains the lower and upper bounds of the confidence interval, respectively. If provided, the internal calculation of standard errors is bypassed and
stderr_typeis used only for plot formatting.
- orthbool,