Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: graphing


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: graphing
Date   Wed, 24 Jul 2002 20:13:40 +0100

Eric Uslaner

> I was wondering if anyone has developed a program that will allow
> different pen shadings within a single graph (ideally something like
> Nick Cox's wonderful sparl, which puts a regression line in
> a graph).
>
> What I would like is to be able to use different pens or different
> symbols for different sets of observations.  E.g., in doing
> cross-national regressions, I would like to highlight
> formerly Communist
> countries.  I know that hilite.ado can do this, but it only
> will do so
> for two groups (dummy variables) and won't put in the
> regression line.
> Ideally, what I would like is to be able to highlight
> different groups
> with different symbols and have a regression line in the
> (single) graph
> (regplot gives you separate graphs for each group).

If you apply -separate- (official Stata) first, you can then do
it by hand: separate variables then allow separate
pens and symbols. It's then just a matter of adding
the (one) regression line I think you want.

Nick
n.j.cox@durham.ac.uk

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