PANEL Procedure

Heteroscedasticity- and Autocorrelation-Consistent Covariance Matrices

The HAC option in the MODEL statement selects the type of heteroscedasticity- and autocorrelation-consistent covariance matrix. As with the HCCME= option, an estimator of the middle expression normal upper Lamda in sandwich form is needed. With the HAC option, it is estimated as

normal upper Lamda Subscript normal upper H normal upper A normal upper C Baseline equals a sigma-summation Underscript i equals 1 Overscript upper N Endscripts sigma-summation Underscript t equals 1 Overscript upper T Subscript i Baseline Endscripts ModifyingAbove epsilon With caret Subscript i t Superscript 2 Baseline bold x Subscript i t Baseline bold x Subscript i t Superscript prime Baseline plus a sigma-summation Underscript i equals 1 Overscript upper N Endscripts sigma-summation Underscript t equals 1 Overscript upper T Subscript i Baseline Endscripts sigma-summation Underscript s equals 1 Overscript t minus 1 Endscripts k left-parenthesis StartFraction s minus t Over b EndFraction right-parenthesis ModifyingAbove epsilon With caret Subscript i t Baseline ModifyingAbove epsilon With caret Subscript i s Baseline left-parenthesis bold x Subscript i t Baseline bold x Subscript i s Superscript prime Baseline plus bold x Subscript i s Baseline bold x Subscript i t Superscript prime Baseline right-parenthesis

where k left-parenthesis period right-parenthesis is the real-valued kernel function,[7] b is the bandwidth parameter, and a is the adjustment factor of small-sample degrees of freedom (that is, a equals 1 if the ADJUSTDF option is not specified and otherwise a equals upper N upper T slash left-parenthesis upper N upper T minus k right-parenthesis, where k is the number of parameters including dummy variables). The types of kernel functions are listed in Table 4.

Table 4: Kernel Functions

Kernel Name Equation
Bartlett k left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column 1 minus StartAbsoluteValue x EndAbsoluteValue 2nd Column StartAbsoluteValue x EndAbsoluteValue less-than-or-equal-to 1 2nd Row 1st Column asterisk 0 2nd Column otherwise EndLayout
Parzen k left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column 1 minus 6 x squared plus 6 StartAbsoluteValue x EndAbsoluteValue cubed 2nd Column 0 less-than-or-equal-to StartAbsoluteValue x EndAbsoluteValue less-than-or-equal-to 1 slash 2 2nd Row 1st Column asterisk 2 left-parenthesis 1 minus StartAbsoluteValue x EndAbsoluteValue right-parenthesis cubed 2nd Column 1 slash 2 less-than-or-equal-to StartAbsoluteValue x EndAbsoluteValue less-than-or-equal-to 1 3rd Row 1st Column asterisk 0 2nd Column otherwise EndLayout
Quadratic spectral k left-parenthesis x right-parenthesis equals StartFraction 25 Over 12 pi squared x squared EndFraction left-parenthesis StartFraction sine left-parenthesis 6 pi x slash 5 right-parenthesis Over 6 pi x slash 5 EndFraction minus cosine left-parenthesis 6 pi x slash 5 right-parenthesis right-parenthesis
Truncated k left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column 1 2nd Column StartAbsoluteValue x EndAbsoluteValue less-than-or-equal-to 1 2nd Row 1st Column 0 2nd Column otherwise EndLayout
Tukey-Hanning k left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column left-parenthesis 1 plus cosine left-parenthesis pi x right-parenthesis right-parenthesis slash 2 2nd Column StartAbsoluteValue x EndAbsoluteValue less-than-or-equal-to 1 2nd Row 1st Column asterisk 0 2nd Column otherwise EndLayout


When you specify the BANDWIDTH=ANDREWS option, the bandwidth parameter is estimated as shown in Table 5.

Table 5: Bandwidth Parameter Estimation

Kernel Name Bandwidth Parameter
Bartlett b equals 1.1447 left-parenthesis alpha left-parenthesis 1 right-parenthesis upper T right-parenthesis Superscript 1 slash 3
Parzen b equals 2.6614 left-parenthesis alpha left-parenthesis 2 right-parenthesis upper T right-parenthesis Superscript 1 slash 5
Quadratic spectral b equals 1.3221 left-parenthesis alpha left-parenthesis 2 right-parenthesis upper T right-parenthesis Superscript 1 slash 5
Truncated b equals 0.6611 left-parenthesis alpha left-parenthesis 2 right-parenthesis upper T right-parenthesis Superscript 1 slash 5
Tukey-Hanning b equals 1.7462 left-parenthesis alpha left-parenthesis 2 right-parenthesis upper T right-parenthesis Superscript 1 slash 5


Let StartSet g Subscript a i t Baseline EndSet denote each series in StartSet g Subscript i t Baseline equals ModifyingAbove epsilon With caret Subscript i t Baseline bold x Subscript i t Baseline EndSet, and let left-parenthesis rho Subscript a Baseline comma sigma Subscript a Superscript 2 Baseline right-parenthesis denote the corresponding estimates of the autoregressive and innovation variance parameters of the AR(1) model on StartSet g Subscript a i t Baseline EndSet, a equals 1 comma ellipsis comma k, where the AR(1) model is parameterized as g Subscript a i t Baseline equals rho g Subscript a i t minus 1 Baseline plus epsilon Subscript a i t with normal upper V normal a normal r left-parenthesis epsilon Subscript a i t Baseline right-parenthesis equals sigma Subscript a Superscript 2. The terms alpha left-parenthesis 1 right-parenthesis and alpha left-parenthesis 2 right-parenthesis are estimated by the formulas

alpha left-parenthesis 1 right-parenthesis equals StartStartFraction sigma-summation Underscript a equals 1 Overscript k Endscripts StartFraction 4 rho Subscript a Superscript 2 Baseline sigma Subscript a Superscript 4 Baseline Over left-parenthesis 1 minus rho Subscript a Baseline right-parenthesis Superscript 6 Baseline left-parenthesis 1 plus rho Subscript a Baseline right-parenthesis squared EndFraction OverOver sigma-summation Underscript a equals 1 Overscript k Endscripts StartFraction sigma Subscript a Superscript 4 Baseline Over left-parenthesis 1 minus rho Subscript a Baseline right-parenthesis Superscript 4 Baseline EndFraction EndEndFraction alpha left-parenthesis 2 right-parenthesis equals StartStartFraction sigma-summation Underscript a equals 1 Overscript k Endscripts StartFraction 4 rho Subscript a Superscript 2 Baseline sigma Subscript a Superscript 4 Baseline Over left-parenthesis 1 minus rho Subscript a Baseline right-parenthesis Superscript 8 Baseline EndFraction OverOver sigma-summation Underscript a equals 1 Overscript k Endscripts StartFraction sigma Subscript a Superscript 4 Baseline Over left-parenthesis 1 minus rho Subscript a Baseline right-parenthesis Superscript 4 Baseline EndFraction EndEndFraction

When you specify BANDWIDTH=NEWEYWEST94, according to Newey and West (1994) the bandwidth parameter is estimated as shown in Table 6.

Table 6: Bandwidth Parameter Estimation

Kernel Name Bandwidth Parameter
Bartlett b equals 1.1447 left-parenthesis left-brace s 1 slash s 0 right-brace squared upper T right-parenthesis Superscript 1 slash 3
Parzen b equals 2.6614 left-parenthesis left-brace s 1 slash s 0 right-brace squared upper T right-parenthesis Superscript 1 slash 5
Quadratic spectral b equals 1.3221 left-parenthesis left-brace s 1 slash s 0 right-brace squared upper T right-parenthesis Superscript 1 slash 5
Truncated b equals 0.6611 left-parenthesis left-brace s 1 slash s 0 right-brace squared upper T right-parenthesis Superscript 1 slash 5
Tukey-Hanning b equals 1.7462 left-parenthesis left-brace s 1 slash s 0 right-brace squared upper T right-parenthesis Superscript 1 slash 5


The terms s 0 and s 1 are estimated by the formulas

s 0 equals sigma 0 plus 2 sigma-summation Underscript j equals 1 Overscript n Endscripts sigma Subscript j Baseline s 1 equals 2 sigma-summation Underscript j equals 1 Overscript n Endscripts j sigma Subscript j

where n is the lag selection parameter and is determined by kernels, as listed in Table 7.

Table 7: Lag Selection Parameter Estimation

Kernel Name Lag Selection Parameter
Bartlett n equals c left-parenthesis upper T slash 100 right-parenthesis Superscript 2 slash 9
Parzen n equals c left-parenthesis upper T slash 100 right-parenthesis Superscript 4 slash 25
Quadratic spectral n equals c left-parenthesis upper T slash 100 right-parenthesis Superscript 2 slash 25
Truncated n equals c left-parenthesis upper T slash 100 right-parenthesis Superscript 1 slash 5
Tukey-Hanning n equals c left-parenthesis upper T slash 100 right-parenthesis Superscript 1 slash 5


The c in Table 7 is specified by the C= option; by default, C=12.

The sigma Subscript j are estimated by the equation

sigma Subscript j Baseline equals upper T Superscript negative 1 Baseline sigma-summation Underscript t equals j plus 1 Overscript upper T Endscripts left-parenthesis sigma-summation Underscript a equals i Overscript k Endscripts g Subscript a t Baseline sigma-summation Underscript a equals i Overscript k Endscripts g Subscript a t minus j Baseline right-parenthesis comma j equals 0 comma ellipsis comma n

where g Subscript a t is the same as in the Andrews method and i is 1 if the NOINT option is specified in the MODEL statement, and 2 otherwise.

When you specify BANDWIDTH=SAMPLESIZE, the bandwidth parameter is estimated by the equation

b equals StartLayout Enlarged left-brace 1st Row 1st Column left floor gamma upper T Superscript r Baseline plus c right floor 2nd Column if the BANDWIDTH equals SAMPLESIZE left-parenthesis INT right-parenthesis option is specified 2nd Row 1st Column gamma upper T Superscript r Baseline plus c 2nd Column otherwise EndLayout

where T is the sample size; left floor x right floor is the largest integer less than or equal to x; and gamma, r, and c are values specified by the BANDWIDTH=SAMPLESIZE(GAMMA=, RATE=, CONSTANT=) options, respectively.

If the PREWHITENING option is specified in the MODEL statement, g Subscript i t is prewhitened by the VAR(1) model,

g Subscript i t Baseline equals upper A Subscript i Baseline g Subscript i comma t minus 1 Baseline plus w Subscript i t

Then normal upper Lamda Subscript normal upper H normal upper A normal upper C is calculated by

normal upper Lamda Subscript normal upper H normal upper A normal upper C Baseline equals a sigma-summation Underscript i equals 1 Overscript upper N Endscripts StartSet left-parenthesis sigma-summation Underscript t equals 1 Overscript upper T Subscript i Baseline Endscripts w Subscript i t Baseline w prime Subscript i t plus sigma-summation Underscript t equals 1 Overscript upper T Subscript i Baseline Endscripts sigma-summation Underscript s equals 1 Overscript t minus 1 Endscripts k left-parenthesis StartFraction s minus t Over b EndFraction right-parenthesis left-parenthesis w Subscript i t Baseline w prime Subscript i s plus w Subscript i s Baseline w prime Subscript i t right-parenthesis right-parenthesis left-parenthesis upper I minus upper A Subscript i Baseline right-parenthesis Superscript negative 1 Baseline left-parenthesis left-parenthesis upper I minus upper A Subscript i Baseline right-parenthesis Superscript negative 1 Baseline right-parenthesis prime EndSet



[7] Specifying HCCME=0 with the CLUSTER option sets k left-parenthesis period right-parenthesis equals 1.

Last updated: June 19, 2025