pdols: Cointegration Vector Estimation by Panel DOLS

Description Usage Arguments Value References Examples

View source: R/pdols.R

Description

pdols estimates panel data cointegrating relationships following the estimator of Mark and Sul (2003), <DOI:10.1111/j.1468-0084.2003.00066.x>.

Usage

1
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), <DOI:10.1111/j.1468-0084.2003.00066.x>. 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. <DOI:10.1111/j.1468-0084.2003.00066.x>

Examples

1
2
3
4
5
6
7
data("marksul2003")
result <- pdols(formula = Y ~ X + Z,
                index = c("Country", "Year"),
                data = marksul2003,
                p = 2,
                icase = "constant")
print(result)

Example output

There were 50 or more warnings (use warnings() to see the first 50)
Call:
pdols(formula = Y ~ X + Z, data = marksul2003, index = c("Country", 
    "Year"), p = 2, icase = "constant")

Ordinary DOLS Coefficients: 
       X         Z  
 0.85997  -0.02031  

pdolsms documentation built on May 29, 2017, 12:36 p.m.

Related to pdols in pdolsms...