Chapter 4 – Panel ARDL / PMG model in STATA

Panel data is used when the data is varying across time and cross section, within which when your panel data has years per cross section more than 20. Then the data becomes long panel data thus simple OLS (FE / RE ) may not work. This tutorial provides the illustration of how to install xtpmg module and how to estimate three variants of panel ARDL model which are pooled mean group (PMG), mean group (MG) and dynamic Fixed effect (DFE). And later on compared the PMG and MG model using hausman test.

clear
use “D:\UMT notes\Applied Econometrics\lectures\lecture 12\notes\jasa2.dta”
xtset id year
label variable pi “Prices”
label variable y “Income”
label variable c “Consumption”
label variable nation “country name”

xtpmg d.c d.y d.pi,ec(ec11) lr(l.c y pi) replace
estimates store pmg
xtpmg d.c d.y d.pi, ec(ec2) lr(l.c y pi) replace mg
estimates store mg
xtpmg d.c d.y d.pi, ec(ec3) lr(l.c y pi) replace dfe
hausman mg pmg, sigmamore
hausman mg DFE, sigmamore

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top