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]

Re: st: two-way scatter conneted by id and colored by sex


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: two-way scatter conneted by id and colored by sex
Date   Wed, 20 Nov 2013 20:48:16 +0000

What do you want on your y axis?

What do you want on your x axis?

What is "scc"?

What is "lineplot"?

More explanations, please?

Nick
[email protected]


On 20 November 2013 20:26, Lars Folkestad <[email protected]> wrote:
> Dear Listers
>
> Firstly sorry if this is spam, but i just got a mail saying the first one
> i sent out was spam.
>
> I have a data set with the following structure and variables:
> +---------------------------+
>      | PatNo   sex   scan   tTbN |
>      |---------------------------|
>   1. |   690     1      1   1.28 |
>   2. |   690     1      2   1.41 |
>   3. |   714     1      1   1.28 |
>   4. |   714     1      2   1.23 |
>   5. |   735     1      1    .42 |
>      |---------------------------|
>   6. |   735     1      2    .65 |
>   7. |   762     1      1      2 |
>   8. |   762     1      2   1.93 |
>   9. |   792     2      1   1.78 |
> 10. |   792     2      2   1.64 |
>      +---------------------------+
>
> I would like to graph a connected scatterplot showing in red lines if
> sex=1 and blue if sex=2, and i want to connect by PatNo. I've been reading
> some old FAQ's and found the scc add-on lineplot, but cannot figure out
> how to get different colored lines by sex.
>
> Is there a more 'official' way to get what i want from these data?
>
> lars
>
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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