[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
David Airey <david.airey@vanderbilt.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: yscale in anovaplot |

Date |
Sun, 26 Apr 2009 11:20:54 -0500 |

Is the version on SSC not the latest? I have . which anovaplot /Users/dairey/Library/Application Support/Stata/ado/plus/a/anovaplot.ado *! 2.1.1 NJC 6 November 2004 -Dave On Apr 26, 2009, at 10:52 AM, Nick Cox wrote:

Thanks to Diego for this interesting question and to Thomas for answering it so fully. To fill in a gap and to fill out the implicitly needed discussion: -anovaplot- is a program in the -modeldiag- package written up in the Stata Journal within SJ-4-4 gr0009 . . . . . . . . . . Speaking Stata: Graphing model diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox (help anovaplot, indexplot, modeldiag, ofrtplot, ovfplot, qfrplot, racplot, rdplot, regplot, rhetplot, rvfplot2, rvlrplot, rvpplot2 if installed) Q4/04 SJ 4(4):449--475 plotting diagnostic information calculated from residuals and fitted values from regression models with continuous responses There's also an equivalent package on SSC that includes older versions of these programs. The paper is accessible to all via http://www.stata-journal.com/sjpdf.html?articlenum=gr0009-anovaplot- is described on p.458. I add this comment, which isrelevantto Diego's question: "It is curious that analysis-of-variance people typically draw interaction plots but suppress the data, whereas regression people prefer to draw scatterplots showing both observed and fitted values.Admittedly, a complicated set of crossing lines showing interactionsmayseem to leave little scope for showing data effectively, while a relatively simple regression leaves plenty of scope, but the difference is nevertheless intriguing." I still treasure a comment made by a senior Stata user, who might not want to be named for this, to the effect that showing the data on the graph typically confuses the issue.Nevertheless I'll think about adding a -nodata- option, possiblywith asting in the tail. (For example, it might -drop- all your data, orsomesuch.) Nick n.j.cox@durham.ac.uk Thomas Steichen =============== Although you have suppressed printing a symbol for the data points via -scatter(msym(none))-, Stata still allows room for that invisible datain its y-axis range. Therefore you cannot reduce the range given thewaythe code is written. Editing the code to allow what you want is pretty straightforward. Change line: numlist "2/`= 1 + `: word count `fits'''" To: numlist "1/`= 1 + `: word count `fits'''" And line: twoway scatter `y' `x1' if e(sample), `scatter' /// To: twoway `scatter' /// Then edit line: program anovaplot, sort To: program anovaplot0, sort Save it with new name anovaplot0.ado and invoke it with command -anovaplot0-Nick Cox's original will keep working and you'll have this one foryourpurpose. Of course, you could get fancy and add a -nodata- option that allows both forms in a single program. Diego Bellavia ============== I am trying to plot an ANOVA for repeated measures model using the amazing anovaplot command. Everything works fine except the yscale range. I need to reduce the range and increase the scale to make differences clear. So I tried: anovaplot level groups, scatter(msym(none)) yscale (range(-12 -24)) ylabel(-12 (2) -24) The problem is that I actually reduced the numbered range and the labelling but now almost half of the graph is empty. Is there any way to change the range so that I can take advantage of all the graph extension ? * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**RE: st: RE: yscale in anovaplot***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: re: first difference in multidimensional panel***From:*Kit Baum <baum@bc.edu>

**st: yscale in anovaplot***From:*Diego Bellavia <bellavia.diego@mac.com>

**st: RE: yscale in anovaplot***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**RE: st: imputing continuous values when respondents select categories, e.g., income category** - Next by Date:
**RE: st: RE: yscale in anovaplot** - Previous by thread:
**st: RE: yscale in anovaplot** - Next by thread:
**RE: st: RE: yscale in anovaplot** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |