Statalist The Stata Listserver

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

RE: st: changing scheme for avplots

From   "Nick Cox" <>
To   <>
Subject   RE: st: changing scheme for avplots
Date   Tue, 17 Oct 2006 19:02:01 +0100

In agreement with Scott's advice, but you should 
certainly not change -avplot- itself: 

There is an ancient package on SSC called -avplot2- 
which was a response to a similar need that I felt. This is
for the old graphics. I have a sense that I revised
these programs somewhere, some time, but evidently 
I never made them public, so perhaps I need to find the files
or redo the work. 

Laura Gibbons 

> > 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. 

*   For searches and help try:

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