Learn R Programming

pdolsms (version 0.2)

pdols: Cointegration Vector Estimation by Panel DOLS

Description

pdols estimates panel data cointegrating relationships following the estimator of Mark and Sul (2003), .

Usage

pdols(formula, data, index, p, icase = c("noconstant", "constant", "trend"))

Arguments

formula
An object of class formula. Note, pdols does not know how to deal with factors.
data
A data frame in long panel format where each period of data is a seperate row for each individual.
index
A vector of two strings for the individual and the time column names.
p
An integer indicating the number of leads and lags to include in the regression.
icase
One of the following character strings "noconstant", "constant", or "trend". Specifying "trend" also includes a constant in the estimation.

Value

pdols returns an object of class pdols with methods print, summary and coef. This object contains a list with the dynamic OLS coefficients for each individual, as well as pooled ordinary and common time effects dols estimates of the coefficients. For more details, please refer to Mark and Sul (2003), . Two standard errors are reported. The first is based on Andrews and Monahan's Pre-whitening methods and the second is based on parametric correction.

References

Mark, N. C. and Sul, D. (2003), Cointegration Vector Estimation by Panel DOLS and Long-run Money Demand. Oxford Bulletin of Economics and Statistics, 65: 655-680.

Examples

Run this code
data("marksul2003")
result <- pdols(formula = Y ~ X + Z,
                index = c("Country", "Year"),
                data = marksul2003,
                p = 2,
                icase = "constant")
print(result)

Run the code above in your browser using DataLab