29.07.2014 Views

teffects nnmatch - Stata

teffects nnmatch - Stata

teffects nnmatch - Stata

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>teffects</strong> <strong>nnmatch</strong> — Nearest-neighbor matching 11<br />

′<br />

is the derivative of p(z i , 1, ̂γ) with respect to z îγ, and<br />

⎧<br />

∑<br />

wj (z j − z Ψi )(y j − y Ψi )<br />

⎪⎨<br />

ĉov (z i , ŷ ti ) =<br />

⎪⎩<br />

is a p × 1 vector with<br />

j∈Ψ h (i)<br />

∑<br />

wj − 1<br />

j∈Ψ h (i)<br />

∑<br />

wj (z j − z Ωi )(y j − y Ωi )<br />

j∈Ω h (i)<br />

∑<br />

wj − 1<br />

j∈Ω h (i)<br />

if t i = t<br />

otherwise<br />

z Ψi =<br />

∑<br />

wj z j<br />

j∈Ψ h (i)<br />

∑<br />

wj<br />

z Ωi =<br />

∑<br />

wj z j<br />

j∈Ω h (i)<br />

∑<br />

wj<br />

and y Ωi =<br />

∑<br />

wj y j<br />

j∈Ω h (i)<br />

∑<br />

wj<br />

j∈Ψ h (i)<br />

j∈Ω h (i)<br />

j∈Ω h (i)<br />

Here we have used the notation Ψ h (i) = Ψ p h (i) and Ω h(i) = Ω p h<br />

(i) to stress that the within-treatment<br />

and opposite-treatment clusters used in computing ̂σ<br />

τ,adj 2 and ̂δ τ,adj 2 are based on h instead of the<br />

cluster Ω p m(i) based on m used to compute ̂τ 1 and ̂δ 1 , although you may desire to have h = m.<br />

The adjustment term c δ for the ATET estimate has two components, c δ = c δ,1 + c δ,2 , defined as<br />

c δ,1 =<br />

c δ,2 =<br />

1<br />

∑ n<br />

i=1 t iw i<br />

1<br />

∑ n<br />

i=1 t iw i<br />

n ∑<br />

i=1<br />

∑<br />

n<br />

i=1<br />

w i z i f(z ′ îγ)<br />

(ỹ 1i − ỹ 0i − ̂δ<br />

)<br />

1<br />

{<br />

w i f(z ′ îγ) ĉov (z i , ŷ 1i ) + ̂p }<br />

i(1)<br />

̂p i (0)ĉov (z i, ŷ 0i )<br />

where<br />

⎧ ∑<br />

wj y j<br />

j∈Ψ h (−i)<br />

∑<br />

wj<br />

⎪⎨ j∈Ψ h (−i)<br />

ỹ ti =<br />

∑<br />

wj y j<br />

if t = t i<br />

⎪⎩<br />

j∈Ω<br />

∑ h<br />

wj<br />

j∈Ω h<br />

otherwise<br />

and the within-treatment matching sets Ψ h (−i) = Ψ p h (−i) are similar to Ψp h<br />

(i) but exclude observation<br />

i:<br />

Ψ p h (−i) = {j 1, j 2 , . . . , j hi | j k ≠ i, t jk = t i , |̂p i − ̂p jk | < |̂p i − ̂p l |, t l = t i , l ∉ {i, j k }}<br />

Finally, we cover the computation of ∂γ ̂∂δ1 in the third term on the right-hand side of ̂σ 2 ′<br />

δ,adj . Here<br />

we require yet another clustering, but we match on the opposite treatment by using the covariates<br />

z i = (z i,1 , . . . , z i,p ) ′ . We will denote these cluster sets as Ω z m(i), for i = 1, . . . , n.<br />

The estimator of the p × 1 vector (∂δ 1 )/(∂γ ′ ) is computed as<br />

̂∂δ 1 1<br />

∂γ ′ = ∑ n<br />

i t iw i<br />

n ∑<br />

i=1<br />

z i f(z ′̂γ)<br />

{(2t i − 1)(y i − y Ω<br />

z<br />

m<br />

i) − ̂δ<br />

}<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!