RGAP0.1.1 package

Production Function Output Gap Estimation

amecoData2input

Data for estimation

assignConstraints

Applies suitable contraining functions to parameters.

autoGapProd

Fit best production function model

autoNAWRUmodel

NAWRU model suggestion

autoTFPmodel

TFP model suggestion

computeCovar

Computes the covariance of the estimated parameters given restrictions...

constraint

Applies contraints to parameters.

cubs

CUBS indicator

cycleOptim

Find suitable cycle specification

dateTsList

Finds first/last starting/end date in list of time series deepening on...

Dconstraint

Extracts the derivative of the applied restriction function.

dot-accessDfSystem

Accesses the internal data frame dfSystem which contains data on the p...

dot-aggregate

Temporally Aggregates time series.

dot-assignGibbsFUN

Assigns the appropriate function and its input variables for the Gibbs...

dot-BayesFitNAWRU

Estimates the parameters and states of a two-dimensional state-space m...

dot-BayesFitTFP

Estimates the parameters and states of a two-dimensional state-space m...

dot-checkBayesInput

Checks the input parameters of .BayesFitTFP and .BayesFitNAWRU for...

dot-checkBoundaries

Checks whether estimated parameters lie on boundaries.

dot-checkCubs

Checks the input variables for the procedure cubs for consistency an...

dot-checkCV

Checks the covariance matrix for invertibility and negative entries on...

dot-checkKuttner

Checks the input variables for the procedure KuttnerModel for consis...

dot-checkModelMLEfit

Checks whether model, prior and MLE fit match.

dot-checkModelPrior

Checks whether model and prior match.

dot-checkNawru

Checks the input variables for the procedure NAWRUmodel for consiste...

dot-checkParRestr

Checks the given variance restrictions for consistency.

dot-checkPrior

Checks the given prior information for consistency and applicability.

dot-checkTfp

Checks the input variables for the procedure TFPmodel for consistenc...

dot-covAR

Computes the covariance of an AR(q) process.

dot-covCUBS

computes the unconditional variance of the cubs equation with p lags o...

dot-cubsTa

Adjusts the frequency of cubs input series.

dot-deltaMethodObs

Computes standard errors of the observation equation using the delta m...

dot-deltaMethodState

Computes standard errors of the state using the delta method.

dot-getXYcubs

defines Y and X in the CUBS equation.

dot-getXYpcInd

defines Y and X for the Phillips curve.

dot-gibbsStep2Eq

Draws from the posterior of the parameters of the cubs equation, condi...

dot-gibbsStepAR

Draws from the posterior of the parameters of the AR(p), p = 1,2 cyc...

dot-gibbsStepDT

Draws from the posterior of the parameters of the damped trend equatio...

dot-gibbsStepRAR2

Draws from the posterior of the parameters of the RAR2 cycle equation,...

dot-initializeLoc

Initializes the location file containing default parameter constraints...

dot-initializeVar

Initializes variance restrictions.

dot-intervalIGamma

Computes confidence interval of Inverse Gamma distributed variable wit...

dot-meanStd2Beta

Converts the mean and standard deviation of a (possibly scaled) Beta-d...

dot-meanStd2GammasNu

Converts the mean and standard deviation of a Gamma-distributed variab...

dot-MLEfitNAWRU

Estimates a two-dimensional state-space model and performs filtering a...

dot-MLEfitTFP

Estimates a two-dimensional state-space model and performs filtering a...

dot-modifySSSystem

Modifies a an object of type NAWRUmodel or TFPmodel in case the va...

dot-mvrnorm

Draws from the multivariate normal distribution.

dot-normalize

Normalizes a time series / vector.

dot-postAR1

Draws from the posterior the autoregressive parameter of a stationary ...

dot-postARp

Draws from the posterior of the autoregressive paramteres of a station...

dot-postNIG

Draws from the posterior of parameters of a normal model with normal i...

dot-postRW

Draws from the posterior of the variance parameter of a random walk or...

dot-printGeweke

Prints the results of the Geweke test for the states and the parameter...

dot-printSSModel

Prints the model specifications.

dot-printSSModelFit

Prints the model fit and possibly specifications.

dot-priorMSd2Parameter

Transforms the prior distribution defined by mean and standard deviati...

dot-RAR2transform

Transforms the parameters of an AR(2) process to its re-parametrized v...

dot-SSmodelfit

Computes figures regarding the model fit of the maximum likelihood est...

dot-SSresults

Computes additional results of the Kalman filter and smoother.

dot-SSresultsBayesian

Computes additional results of the Kalman filter and smoother for Baye...

dot-SSSystem

Prepares state space model system matrices to create an object of type...

dot-updateParConstraints

Updates the parameter constraints for on object of class NAWRUmodel ...

dot-updateSSSystem

Updates the system matrices of an object of class NAWRUmodel or `TFP...

extract_ameco_data

Extracts the relevant 'AMECO' data

extract_indicator_data

Extracts the relevant 'AMECO' indicator data.

fetchAmecoData

Current 'AMECO' data vintage

firstLetterUp

Capitalizes the first letter of a string.

fit.KuttnerModel

Maximum likelihood estimation of a KuttnerModel

fit.NAWRUmodel

Estimation of a NAWRUmodel

fit

Fit Method

fit.TFPmodel

Estimation of a TFPmodel

FUNcov

Computes mean and variance of the part of the posterior distribution t...

gapHP

HP-filter output gap

gapProd

Production function output gap

gewekeTest

Conducts a Geweke test for convergence of the draws.

growth

Growth rate

helper_fit_comparison

model selection fit comparison helper function

helper_model_comparison

model comparison helper function

helper_model_fit

model selection helper function

HPDinterval

Computes the approximate highest posterior density interval (HPDI).

hpfilter

HP filter

inference

Computes standard errors, t-statistics, and p-values for the estimated...

initializeExo

Initialization of exogenous variables

initializePrior

Initialization of prior distributions

initializeRestr

Initialization of parameter restrictions

is.gap

gap object check

is.KuttnerFit

KuttnerFit object check

is.KuttnerModel

KuttnerModel object check

is.NAWRUfit

NAWRUfit object check

is.NAWRUmodel

NAWRUodel object check

is.TFPfit

TFPfit object check

is.TFPmodel

TFPmodel object check

KuttnerModel

Kuttner model

matmult3d

Capitalizes the first letter of a string.

mcmcSummary

Computes MCMC summary statistics.

NAWRUmodel

NAWRU model

obs2Optim

Find suitable 2nd observation specification

operTsLists

Performs a mathematical operation to the ts elements of two lists with...

plot.gap

Plots for a gap object

plot.KuttnerFit

Plots for a KuttnerFit object

plot.NAWRUfit

Plots for a NAWRUfit object

plot.TFPfit

Plots for a TFPfit object

plot_gibbs_output

Plots the diagnostic plots of the posterior distribution.

plotGap

Plots the trend series and the (fitted) second observation equation an...

plotSSprediction

Plots the trend series and the (fitted) second observation equation an...

plotSSresults

Plots the trend series and the (fitted) second observation equation an...

predict.fit

Predictions

predictBayes

Predictions for Bayesian estimation

predictMLE

Predictions for MLE

print.gap

Print gap object

print.KuttnerFit

Print KuttnerFit object

print.KuttnerModel

Print KuttnerModel object

print.NAWRUfit

Print NAWRUfit object

print.NAWRUmodel

Print NAWRUmodel object

print.TFPfit

Print TFPfit object

print.TFPmodel

Print TFPmodel object

TFPmodel

TFP trend model

trendAnchor

Trend anchor

trendOptim

Find suitable trend specification

trendVolaMeasures

Trend volatility measures

The output gap indicates the percentage difference between the actual output of an economy and its potential. Since potential output is a latent process, the estimation of the output gap poses a challenge and numerous filtering techniques have been proposed. 'RGAP' facilitates the estimation of a Cobb-Douglas production function type output gap, as suggested by the European Commission (Havik et al. 2014) <https://ideas.repec.org/p/euf/ecopap/0535.html>. To that end, the non-accelerating wage rate of unemployment (NAWRU) and the trend of total factor productivity (TFP) can be estimated in two bivariate unobserved component models by means of Kalman filtering and smoothing. 'RGAP' features a flexible modeling framework for the appropriate state-space models and offers frequentist as well as Bayesian estimation techniques. Additional functionalities include direct access to the 'AMECO' <https://economy-finance.ec.europa.eu/economic-research-and-databases/economic-databases/ameco-database_en> database and automated model selection procedures. See the paper by Streicher (2022) <http://hdl.handle.net/20.500.11850/552089> for details.

  • Maintainer: Sina Streicher
  • License: GPL-3
  • Last published: 2023-11-02