celdjt@umich.edu wrote:
> I have a series of interconnected monotonically declining plots that I am
> presenting as a single connected line graph, i.e., a graph that starts
> relatively high on the y axis, declines, jumbs vertically to a second high
> point, declines again,etc (substantively describes a relationship between
> varying values of a hazard ratio and age). I can't figure out how to add a
> line going from the 0 point on the x axis to the initial value of the
> graph. I would be most appreciative of any suggestions. Thanks
I think you need to generate an observation with x=0.
Assuming that the y-value for x=0 should be y=0:
. set obs `=_N+1'
. replace x = 0 in `=_N'
. replace y = 0 in `=_N'
. connected y x, sort
Or, if your dataset contains only x and y:
. input
. 0 0
. end
. connected y x, sort
many regards
uli
--
kohler@wz-berlin.de
+49 (030) 25491-361
*
* 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/