Dear Tom,
While running the @panelfm procedure, I have two regressors. How should I change the rows below to compute the heterogeneity test(s) with two slope coefficients? Also, if I have a trend term do I need additional changes in the program below? Thank you very much for your help in advance.
Regards,
atarca
* Heterogeneity test (slope coefficient only)
*
sstats(mean) 1 %ngroup %%ixx(t)(1,1)>>meanvar %%ibetas(1,t)>>meanbeta
dec symm v(%ngroup,%ngroup)
dec vect b(%ngroup)
ewise v(i,j)=(i==j)*%%ixx(i)(1,1)-(1.0/%ngroup)*%%ixx(i)(1,1)-(1.0/%ngroup)*%%ixx(j)(1,1)+1.0/(%ngroup)*meanvar
ewise b(i)=%%ibetas(1,i)-meanbeta
compute hettest=%qforminv(v,b)
cdf(title="Heterogeneity Test") chisqr hettest %ngroup-1
Heterogeneity test
Questions related to panel (pooled cross-section time series) data.
Jump to
- News and Announcements
- ↳ Forum Announcements
- ↳ RATS Product Announcements
- ↳ Newsletters
- Courses and Seminars
- ↳ Course Announcements
- ↳ ARCH GARCH and Volatility
- ↳ RATS Programming Manual
- Procedures, Examples, and Sample Code
- ↳ RATS Procedures
- ↳ Examples and Sample Code
- ↳ Looking for Code?
- General RATS Discussions
- ↳ Data: Reading, Writing, Transforming
- ↳ Graphics, Reports, and Other Output
- ↳ Help With Programming
- ↳ Other RATS Usage Questions
- ↳ RATS for Teachers & Students
- ↳ Tips and Tricks
- ↳ Suggestion Box
- Econometrics Issues
- ↳ VARs (Vector Autoregression Models)
- ↳ ARCH and GARCH Models
- ↳ State Space Models/DSGE
- ↳ Structural Breaks and Switching Models
- ↳ Panel Data
- ↳ Other Time Series Analysis
- ↳ General Econometrics
- CATS (Cointegration Analysis)
- ↳ CATS News and Announcements
- ↳ CATS Questions