Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: - graph matrix - with regression lines
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: RE: - graph matrix - with regression lines
Date
Wed, 21 Apr 2010 19:10:17 +0200
<>
Add the -half- option to your call to -graph matrix-, and constructing this
from calls to -scatter- and -graph combine-ing afterwards does not sound
like such a bad deal any more, does it?
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Philipp Rehm
Sent: Mittwoch, 21. April 2010 19:02
To: [email protected]
Subject: st: - graph matrix - with regression lines
Dear all,
is there a way to add regression lines (like in -graph twoway lfit- or
-graph twoway qfit-) to a scatterplot matrix produced by -graph matrix-?
Here is an example of such a scatterplot matrix:
sysuse citytemp, clear
graph mat heatdd-tempjuly, ms(p) maxes(ylab(#4) xlab(#4))
I would like to add regression lines to each of the plots, as in this
example:
tw (scatter heatdd cooldd) (lfit heatdd cooldd)
Can this be done?
Many thanks,
Philipp
*
* 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/