Learn R Programming

pdynmc: Dynamic linear panel estimation based on linear and nonlinear moment conditions

Linear dynamic panel data modeling based on linear and nonlinear moment conditions as proposed by Holtz-Eakin, Newey, and Rosen (1988) https://doi.org/10.2307/1913103, Ahn and Schmidt (1995) https://doi.org/10.1016/0304-4076(94)01641-C, and Arellano and Bover (1995) https://doi.org/10.1016/0304-4076(94)01642-D.

Estimation of the model parameters relies on the Generalized Method of Moments (GMM), numerical optimization (when nonlinear moment conditions are employed) and the computation of closed form solutions (when estimation is based on linear moment conditions). One-step, two-step and iterated estimation is available.

For inference and specification testing, Windmeijer (2005) https://doi.org/10.1016/j.jeconom.2004.02.005 - and doubly corrected standard errors introduced by Hwang, Kang, and Lee (2021) https://doi.org/10.1016/j.jeconom.2020.09.010 are available. Additionally, serial correlation tests, tests for overidentification, and Wald tests are provided.

Functions for visualizing panel data structures and modeling results obtained from GMM estimation are also available. The plot methods include functions to plot unbalanced panel structure, coefficient ranges and coefficient paths across GMM iterations (the latter is implemented according to the plot shown in Hansen and Lee, 2021 https://doi.org/10.3982/ECTA16274).

See also: https://cran.r-project.org/web/packages/pdynmc/index.html. For further details on the implementation, see Fritsch, Pua, and Schnurbus (2021) https://journal.r-project.org/archive/2021/RJ-2021-035/index.html.

To install the latest development version of the package, please use:

library(devtools)
install_github("markusfritsch/pdynmc")

Copy Link

Version

Install

install.packages('pdynmc')

Monthly Downloads

889

Version

0.9.12

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Markus Fritsch

Last Published

February 20th, 2025

Functions in pdynmc (0.9.12)

pDensTime.plot

Plot Empirical Density of a Column of a Panel Dataset over Time.
model.matrix.pdynmc

Extract Instrument Matrix of Fitted Model.
ninst.pdynmc

Extract Instrument Count of Fitted Model.
optimIn.pdynmc

Extract Input Parameters of Numeric Optimization of Fitted Model.
ninst

Extract Instrument Count of Fitted Model.
variable.names.pdynmc

Extract Names of Explanatory Variables of Fitted Model.
residuals.pdynmc

Extract Residuals of Fitted Model.
pdynmc

Generalized Method of Moments (GMM) Estimation of Linear Dynamic Panel Data Models.
strucUPD.plot

Plot on Structure of Unbalanced Panel Dataset.
summary.pdynmc

Summary for Fitted Model Object.
vcov.pdynmc

Extract Variance Covariance Matrix of Fitted Model.
sargan.fct

Sargan test.
plot.pdynmc

Plot Coefficient Estimates and Corresponding Ranges of Fitted Model.
wald.fct

Wald Test.
print.pdynmc

Print Fitted Model Object.
wmat

Extract Weighting Matrix of Fitted Model.
print.summary.pdynmc

Print Summary of Fitted Model Object.
wmat.pdynmc

Extract Weighting Matrix of Fitted Model.
NLIV

Nonlinear Instrumental Variables Estimator - T-Version (NLIV).
data.info

Show Basic Structure of Panel Dataset.
case.names.pdynmc

Case and Variable Names of Fitted Model.
FDLS

First Difference Least Squares (FDLS) Estimator of Han and Phillips (2010).
fitted.pdynmc

Extract Fitted Values of Fitted Model.
dummy.coef.pdynmc

Extract Coefficient Estimates of Time Dummies of Fitted Model.
cigDemand

Cigarette consumption in the US
coef.pdynmc

Extract Coefficient Estimates of Fitted Model.
NLIV.alt

Nonlinear Instrumental Variables Estimator - t-Version (NLIV.alt).
optimIn

Extract Input Parameters of Numeric Optimization of Fitted Model.
jtest.fct

Hansen J-Test.
ABdata

Employment, wages, capital, and output for companies based in the UK
mtest.fct

Arellano and Bond Serial Correlation Test.
package-pdynmc

pdynmc: A package for moment conditions based estimation of linear dynamic panel data models
nobs.pdynmc

Extract Number of Observations of Fitted Model.