covbayesvar.large_bvar
Functions
|
Fixed Interval Smoother (FIS) based on Durbin and Koopman, 2001, p. |
|
Eliminates the rows in y, matrices C, R, and vector c1 that correspond to missing data (NaN) in y. |
|
Kalman filter for stationary systems with time-varying system matrices and missing data. |
|
Converts a list of variables to their array equivalents, if applicable. |
|
Computes conditional forecasts for the missing observations in X using a VAR, Kalman filter and the Durban and Koopman smoother. |
|
Computes the coefficients for the Beta distribution. |
|
Perform a Broyden-Fletcher-Goldfarb-Shanno (BFGS) update on the inverse Hessian matrix. |
|
Computes the forecasts for a vector autoregression (VAR) model at the specified forecast horizons. |
|
Estimate the BVAR model of Giannone, Lenza and Primiceri (2015) |
|
Estimate the BVAR model of Giannone, Lenza and Primiceri (2015), augmented for changes in volatility due to Covid (March 2020). |
|
Computes structural or reduced form Impulse Response Functions (IRFs) using Cholesky ordering. |
|
Check the parameters for acceptability and fill in defaults for unspecified ones. |
|
Compute the reduced Cholesky decomposition of a matrix. |
|
Return the number of columns in a matrix x. |
|
Computes Impulse Response Functions (IRFs) up to a specified horizon. |
|
Performs a line search to find a suitable step size for optimization. |
|
Minimizes a function using a quasi-Newton method. |
|
Finds the solution to a system of nonlinear equations using iterative methods. |
|
Estimate the n'th derivative of fun at x0 and provide an error estimate. |
|
Performs draws from the posterior of the disturbances and unobservable states of a state-space model. |
|
Compute the derivative for the Rosenbrock problem. |
|
Compute matrix for finite difference approximation (FDA) derivation. |
|
Forms the matrices of the VAR companion form. |
|
Forms the matrices of the VAR companion form with COVID-related adjustments. |
|
Computes the coefficients of Gamma distribution coefficients and makes plots, if requested The parameters of the Gamma distribution are k = shape parameter: affects the PDF of the Gamma distribution, including skewness and mode theta = scale parameter: affects the spread of the distribution i.e. it shrinks or stretches the distribution along the x-axis. |
|
Estimate the gradient vector of an analytical function of n variables. |
|
Compute the diagonal elements of the Hessian matrix (vector of second partials) |
|
Compute the Hessian matrix of second partial derivatives for a scalar function. |
|
Kalman filter with constant variance for the state-space model. |
|
Create a matrix or vector of lagged values. |
|
Create a matrix of lagged (time-shifted) series. |
|
Compute the log-posterior (or logML if hyperpriors=0), and draws from the posterior distribution of the coefficients and of the covariance matrix of the residuals of the BVAR model by Giannone, Lenza, and Primiceri (2015). |
|
Compute the log-posterior (or logML if hyperpriors=0), and draws from the posterior distribution of the coefficients and of the covariance matrix of the residuals of the BVAR model by Giannone, Lenza, and Primiceri (2015). |
|
Compute the log-posterior, posterior mode of the coefficients, and covariance matrix of the residuals for |
|
Compute the log-posterior, posterior mode of the coefficients, and covariance matrix of the residuals for |
|
Compute the log probability density function (PDF) of the Beta distribution. |
|
Computes the log of the Gamma probability density function (PDF) for given values. |
|
Compute the log probability density function (PDF) of the Inverse Gamma distribution. |
|
Ensures that a given square matrix is positive definite. |
|
Compute the numerical gradient of a given function using a central difference approximation. |
|
Perform Ordinary Least Squares (OLS) regression. |
|
Parses sets of property-value pairs and allows defaults. |
|
Plots the joint distribution in the center, with marginals on the side. |
|
|
|
|
|
Plots the joint distribution in the center, with marginals on the side. |
|
Saves the given figure as a PDF file with specified dimensions. |
|
Plots a line chart with filled quantile bands. |
|
Do Romberg extrapolation for each estimate. |
|
Rosenbrock function. |
|
Runs Kalman filter using the Durbin and Koopman simulation smoother. |
|
This function sets up the default choices for the priors of the BVAR of Giannone, Lenza and Primiceri (2015) |
|
This function sets up the default choices for the priors of the BVAR of Giannone, Lenza and Primiceri (2015), augmented with a change in volatility at the time of Covid (March 2020). |
|
Swap the values at the specified indices in the input vector. |
|
Replace the element at a specified index 'ind' with a new 'val' in the vector vec. |
|
Transforms the raw data based on the specified transformation. |
|
Return a matrix (or vector) x stripped of the specified rows. |
|
Forms the matrix M, such that M[i, j] = vec[i + j - 1]. |
|
Check if the first beta and sigma matrices are all zeros. |
|
Calculate weighted quantiles for each time period. |