Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: changing scheme for avplots


From   Laura Gibbons <gibbonsl@u.washington.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: changing scheme for avplots
Date   Tue, 17 Oct 2006 10:59:00 -0700 (PDT)

That does it, thanks!

On Tue, 17 Oct 2006, smerryman@kc.rr.com wrote:

----- Original Message -----
From: Laura Gibbons <gibbonsl@u.washington.edu>
Date: Tuesday, October 17, 2006 11:36 am
Subject: st: changing scheme for avplots
To: statalist@hsphsun2.harvard.edu
Cc: "van Belle, gerald" <vanbelle@u.washington.edu>

I am unable to change the scheme for the graph produced by
avplots.  I
need to have a white background, not shaded blue.

example:

webuse auto, clear
reg price mpg weight
avplots, scheme(s1mono)
You need to use the commonscheme option:

avplots, scheme(s1mono) commonscheme

Also, is there anyway to format the coefficients and se so that
fewer
decimal points are presented?  (I know how to format numbers, but
how do I
tell Stata where to do that?)
One way would be to draw each -avplot- and rewrite the note():

avplot mpg, name(gr1, replace) note("coef= 49.51, se = 86.16")
avplot weight, name(gr2, replace) note("coef= 1.75, se = .64")
graph combine gr1 gr2, scheme(s1mono) commonscheme

Or you could alter -avplot- so that the coef and se are rounded (you
may want to make a back up copy of -avplot-).

You could change lines 114 and 115 from

	local coef=return(coef)
	local se=return(se)
to
	local coef=round(return(coef), .01)
	local se=round(return(se), .01)

so that that displayed estimates are rounded.

Scott

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laura E. Gibbons, PhD
General Internal Medicine, University of Washington
Box 359780
Harborview Medical Center
325 Ninth Avenue, Seattle, WA  98104

phone: 206-744-1842   fax: 206-744-9917
Office address: 401 Broadway, Suite 5122
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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