Bookmark and Share

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: lengthening lfit line to fill the entire graph


From   "Impavido, Gregorio" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: lengthening lfit line to fill the entire graph
Date   Tue, 17 Jan 2012 09:49:33 -0500

Try by adding the option range(x y) where x and y are the min and max of your x axis.

twoway (scatter  length weight if foreign==1) (scatter  length weight if
foreign==0) (lfit  length weight if foreign==1, range(x y))

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ariel Linden, DrPH
Sent: Saturday, January 14, 2012 3:51 PM
To: [email protected]
Subject: st: lengthening lfit line to fill the entire graph

Hi All,

How can I lengthen the lfit line (or for that matter, any predicted line) to
fill the entire length of the x-axis (according the x-axis label). 

For example: 

twoway (scatter  length weight if foreign==1) (scatter  length weight if
foreign==0) (lfit  length weight if foreign==1)

Thanks!

Ariel

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index