Hey everyone,
I am working with a replication set that estimates the impact of trade on conflict with logit and uses an undirected dyad year data set. One specification clusters the standard errors by dyad and year according to the Cameron et al. (2006) method. However, Stata issues the warning "gatt not found" every time I execute the file.
I am using Stata 15 and the relevant code looks like this:
The warning appears after the line
. I am not sure how to get the code working and would appreciate any help. Thank you very much.
Best regards
Matthias
I am working with a replication set that estimates the impact of trade on conflict with logit and uses an undirected dyad year data set. One specification clusters the standard errors by dyad and year according to the Cameron et al. (2006) method. However, Stata issues the warning "gatt not found" every time I execute the file.
I am using Stata 15 and the relevant code looks like this:
Code:
global opt ",robust cluster(dyad)" global trade "ltrl ztl" global multitrade "lopenl" global interactions "muldis bildis" global controlgrav "ldis comlng contig colony comcol fta_f gatt" global controlbarb "peace votcol pol totwar diswar larea allied" global oldwar "con1 con2 con3 con4 con5 con6 con7 con8 con9 con10" global oldwar2 "con11 con12 con13 con14 con15 con16 con17 con18 con19 con20" global time "yr1-yr61" * //SE multi-way clustering by dyad and year following the Cameron et al. (2006) method: egen dyear = group(dyad year) matrix drop _all logit mid $trade $multitrade $interactions $controlbarb $controlgrav $time $oldwar $oldwar2 , robust cluster(dyad) matrix Vdyad = e(V) logit mid $trade $multitrade $interactions $controlbarb $controlgrav $time $oldwar $oldwar2 , robust cluster(year) matrix Vyear = e(V) logit mid $trade $multitrade $interactions $controlbarb $controlgrav $time $oldwar $oldwar2 , robust cluster(dyear) matrix Vdyear = e(V) mat b=e(b) matrix Vtot = Vdyad + Vyear - Vdyear matrix Bsmall = b[1,"ltrl".."gatt"] matrix Vtotsmall = Vtot["ltrl".."gatt","ltrl".."gatt"] ereturn post Bsmall Vtotsmall ereturn display
Code:
matrix Bsmall = b[1,"ltrl".."gatt"]
Best regards
Matthias
Comment