gEconpy.plotting.plot_kalman_filter#
- gEconpy.plotting.plot_kalman_filter(idata, data, kalman_output='predicted', group='posterior', n_cols=None, vars_to_plot=None, fig=None, figsize=(14, 6), dpi=144, observed=False)#
Plot Kalman filter, prediction or smoothed series for variables in idata.
- Parameters:
- idata
xarray.Dataset Dataset with Kalman filter variables.
- data
pandas.DataFrame DataFrame with original time series data.
- kalman_output
str, optional String indicating whether to plot filtered, predicted, or smoothed series. Must be one of ‘filtered’, ‘predicted’, or ‘smoothed’.
- group: str, optional
idata group to plot. One of “prior” or “posterior”. Default is ‘posterior’.
- n_cols
int, optional Number of columns in the plot.
- vars_to_plot
listofstr, optional List of variable names to plot.
- fig
matplotlib.figure.Figure, optional Matplotlib Figure object to plot on.
- figsize
tupleofint, optional Figure size in inches.
- dpi
int, optional Figure DPI.
- cmap
str, optional Colormap name.
- idata
- Returns:
matplotlib.figure.FigureMatplotlib Figure object with the plot.