The last version of Nick Cox's -anovaplot- command dates back to 2004. With the introduction of factor notation in Stata 11 (July 2009) and changes to the anova syntax, some examples in the anovaplot help file require version control or appropriate modification; otherwise the graphs it generates may be misleading.
In Stata 11 and newer versions, the options category(), class(), and continuous() are no longer used in anova command, and you should use c.varname to indicate continuous. Check the difference:
In Stata 11 and newer versions, the options category(), class(), and continuous() are no longer used in anova command, and you should use c.varname to indicate continuous. Check the difference:
Code:
sysuse auto decode foreign, gen(Foreign) gen F = substr(Foreign,1,1) version 10: anova price weight foreign, cont(weight) anovaplot, scatter(ms(i) mla(F) mlabpos(0)) version 11: anova price c.weight foreign anovaplot, scatter(ms(i) mla(F) mlabpos(0)) version 11: anova price weight foreign anovaplot, scatter(ms(i) mla(F) mlabpos(0))

Comment