Statalist


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

Re: st: connectstyle


From   "Ashim Kapoor" <ashimkapoor@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: connectstyle
Date   Wed, 24 Sep 2008 16:48:57 +0530

I understand now what connect(L) means.

Thank you,
Ashim.

On Wed, Sep 24, 2008 at 4:18 PM, Svend Juul <SJ@soci.au.dk> wrote:
>
>
> ------------------------------------------------------------------------
> --------
> From   "Ashim Kapoor" <ashimkapoor@gmail.com>
> To   statalist@hsphsun2.harvard.edu
>
> To my suggestion:
>
>     clear
>     input lineno pointno x y
>     1 0 0 0
>     1 1 2 3
>     1 2 3 2
>     2 1 2 3
>     2 3 4 2.2
>     end
>     sort lineno x
>     twoway scatter y x , connect(L)
>
> Ashim wrote:
>
> Thank you for your reply. I don't quite follow the idea behind
> connect(L). The help says it connects only if x[j+1] > x[j].  I did
> not get it. I do see your point in the lineno / point no. I don't see
> how connect(L) will "see" the lineno.
>
> ==================================================================
>
> You are right, this will only work in some cases. To get better
> answers, you should probably tell more explicitly what you want
> to obtain and why. The best method also depends on the structure
> of your data set.
>
> Svend
> __________________________________________
>
> Svend Juul
> Institut for Folkesundhed, Afdeling for Epidemiologi
> (Institute of Public Health, Department of Epidemiology)
> Vennelyst Boulevard 6
> DK-8000  Aarhus C, Denmark
> Phone:  +45 8942 6090
> Home:   +45 8693 7796
> Email:  sj@soci.au.dk
> __________________________________________
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index