Hello,
I'm trying to use -outreg2- to export results after running -areg- with additional statistics (stored p-values using -local-). The two local values are "a1" and "a2", which I specified as below (didn't include the tests I ran to before each -local- command to save space):
Then, I ran this -outreg2- command, where I specified that I want to add the values of "a1" and "a2" at the end of my output, with new names for each item:
But Stata returns "option addstat() not allowed." What am I missing here? I've also tried removing the double-quotes in the label name, but that didn't seem to work either. Would appreciate any insight!
I'm trying to use -outreg2- to export results after running -areg- with additional statistics (stored p-values using -local-). The two local values are "a1" and "a2", which I specified as below (didn't include the tests I ran to before each -local- command to save space):
Code:
local a1 = r(p) local a2 = r(p)
Code:
outreg2 using myfile, excel append dec(2) alpha(0.001, 0.01, 0.05, 0.10) symbol(***, **, *, +) addstat("year1 effect", `a1', "year2 effect, `a2') adec(4)
Comment