Title: | Dynamic Panel Data Models |
---|---|
Description: | Computes the first stage GMM estimate of a dynamic linear model with p lags of the dependent variables. |
Authors: | Taha Zaghdoudi |
Maintainer: | Taha Zaghdoudi <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2024-11-23 02:45:10 UTC |
Source: | https://github.com/zedtaha/dynpanel |
This package computes the first stage GMM estimate of a dynamic linear model with p lags of the dependent variables.
Package: | dynpanel |
Type: | Package |
Version: | 1.0 |
Date: | 2016-08-26 |
License: | GPL-3 |
In this package, we apply the generalized method of moments to estimate the dynamic panel data models.
Taha Zaghdoudi
Taha Zaghdoudi <[email protected]>
Anderson, T. W.; Hsiao, Cheng (1981). Estimation of dynamic models with error components. ournal of the American Statistical Association. 76 (375) ,pp. 598-606.
Arellano, Manuel; Bond, Stephen (1991). Some tests of specification for panel data: Monte Carlo evidence and an application to employment equations. Review of Economic Studies. 58, pp.2)-277. Cameron, A. Colin; Trivedi, Pravin K. (2005). Dynamic Models. Microeconometrics: Methods and Applications. New York: Cambridge University Press. pp. 763-768.
Hsiao, Cheng (2014). Dynamic Simultaneous Equations Models. Analysis of Panel Data. New York: Cambridge University Press. pp. 397-402.
Munnell AH (1990). Why has Productivity Growth Declined? Productivity and Public Investment, New England Economic Review, pp. 3-22.
# Load data data(Produc) # Fit the dynamic panel data using the Arellano Bond (1991) instruments reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,4) summary(reg) # Fit the dynamic panel data using an automatic selection of appropriate IV matrix #reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,0) #summary(reg) # Fit the dynamic panel data using the GMM estimator with the smallest set of instruments #reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,1) #summary(reg) # Fit the dynamic panel data using a reduced form of IV from method 3 #reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,2) #summary(reg) # Fit the dynamic panel data using the IV matrix where the number of moments grows with kT # K: variables number and T: time per group #reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,3) #summary(reg)
# Load data data(Produc) # Fit the dynamic panel data using the Arellano Bond (1991) instruments reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,4) summary(reg) # Fit the dynamic panel data using an automatic selection of appropriate IV matrix #reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,0) #summary(reg) # Fit the dynamic panel data using the GMM estimator with the smallest set of instruments #reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,1) #summary(reg) # Fit the dynamic panel data using a reduced form of IV from method 3 #reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,2) #summary(reg) # Fit the dynamic panel data using the IV matrix where the number of moments grows with kT # K: variables number and T: time per group #reg<-dpd(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,index=c("state","year"),1,3) #summary(reg)
method
dpd(x, ...)
dpd(x, ...)
x |
a numeric design matrix for the model. |
... |
not used |
Zaghdoudi Taha
formula
## S3 method for class 'formula' dpd(formula, data = list(), index = c("id", "time"), p, meth = c(0, 1, 2, 3, 4), ...)
## S3 method for class 'formula' dpd(formula, data = list(), index = c("id", "time"), p, meth = c(0, 1, 2, 3, 4), ...)
formula |
PIB~INF+TIR |
data |
the dataframe |
index |
: id is the name of the identity groups and time is the time per group |
p |
scalar, autoregressive order for dependent variable |
meth |
scalar, indicator for the Instruments to use |
... |
not used |
statethe state
yearthe year
pcapprivate capital stock
hwyhighway and streets
waterwater and sewer facilities
utilother public buildings and structures
pcpublic capital
gspgross state products
emplabor input measured by the employement in non–agricultural payrolls
unempstate unemployment rate
data(Produc)
data(Produc)
A data frame with 816 rows and 10 variables
Summary
## S3 method for class 'dpd' summary(object, ...)
## S3 method for class 'dpd' summary(object, ...)
object |
is the object of the function |
... |
not used |