Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73344

ambiguous abbreviation error trying to recall blogit estimates stored

$
0
0
Dear Statalist,

I am using Stata 12 trying to recall stored estimates using outreg2 and get an ambiguous abbreviation error. Here's the structure of my code:

estimates clear
local deplist "y1 y2"
local i "1"

foreach j of numlist 1/3{
foreach dep of local deplist{

blogit `dep' pop x1 x2 if subsetvar==`j'
estimates store m`i'
local i = `i' + 1

blogit `dep' pop x1 x2 x3 x4 if subsetvar==`j'
estimates store m`i'
local i = `i' + 1
}
}

estimates dir /* shows 12 saved models named: m1, m2, m3, m4, m5, m6 m7 m8 m9 m10 m11 m12*/

When I run the following, it only reports the results of four models and the labeling of m1, m2, etc. doesn't correspond to the output, so it's confusing as to which four models it is reporting on.
outreg2[*] using "$directory6\c2_101016a_temp.xls", replace sideway stats(coef ci) dec(2) paren(ci) alpha(0.001, 0.01, 0.05) eform

When I run the following, I receive the error "_est_m1 ambiguous abbreviation"
outreg2 [m1 m2 m3 m4 m5 m6 m7 m8 m9 m10 m11 m12] using "$directory6\c2_101016a_temp.xls", replace sideway stats(coef ci) dec(2) paren(ci) alpha(0.001, 0.01, 0.05) eform

I would appreciate your suggestions on how to fix this.

Best,
Brent Fulton

Viewing all articles
Browse latest Browse all 73344

Trending Articles