Greetings,
I am using outreg2 to create a table presenting multinomial logit results and would like to add the AIC to the summary statistics. In keeping with advice I picked up from an archived Statalist post (on the same question but for outreg - not outreg2)
and example 9 in the help for outreg2
I have used the following code but have tried to substitute the "addstat" option for the "addrows" option.
Stata returns the error:
unknown function ()
r(133);
How can I correct this code to get the AIC into my outreg2 table output? Alternatively, is there an easier or other way to get the AIC into my outreg2 table?
Kind regards,
Christiana
I am using outreg2 to create a table presenting multinomial logit results and would like to add the AIC to the summary statistics. In keeping with advice I picked up from an archived Statalist post (on the same question but for outreg - not outreg2)
HTML Code:
http://www.stata.com/statalist/archive/2013-03/msg00216.html
HTML Code:
http://repec.org/bocode/o/outreg2
Code:
mlogit DepVar IndVar1 IndVar2, base(2) r est store DV1M1, title(Model 1) estat ic mat es_ic = r(S) local AIC: display %4.1f es_ic[1,5] outreg2 using Table_Dev_Pref.xls, dec(3) addstat(AIC, 'AIC') groupvar(IndVar1 IndVar2) replace
Stata returns the error:
unknown function ()
r(133);
How can I correct this code to get the AIC into my outreg2 table output? Alternatively, is there an easier or other way to get the AIC into my outreg2 table?
Kind regards,
Christiana
Comment