<>
Ada had problems posting to Statalist, so I am forwarding this on her
behalf.
For her first problem, she may want to -destring- the id variable to get
reliable numerical equivalents for it. As for the second one, she should
-inspect- her time variable to see why Stata complains about a non-integer
time value. It is hard for the list to diagnose this problem from afar...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: Ada Lo [mailto:[email protected]]
Gesendet: Mittwoch, 4. November 2009 00:44
An: [email protected]; [email protected]
Betreff: Fwd: st: Inappropriate lines joining up between individuals in
twoway line graph
Hi Martin & Austin,
My first and second ever reply to statlist digest didn't seem to get
through. My understanding is that I should click reply without
deleting anything but change the subject line to my own
question/subject right? Apology for forwarding my reply to you
directly...please see my reply/query below.
Cheers,
Ada
---------- Forwarded message ----------
From: Ada Lo <[email protected]>
Date: Thu, Oct 29, 2009 at 10:59 AM
Subject: Re: st: Inappropriate lines joining up between individuals in
twoway line graph
To: [email protected]
Hi Martin and Austin,
Thank you both for your advice. I used the cmissing(n) option and it
fixed the problem! As for xtline, I didn't know it existed and I tried
it using the example given by Austin and then applied it to my data. I
was surprised how simple it was and I was able to reproduce the exact
same plot given by Twoway line without having to sort or worry about
missing data.
I have a question about using xtset that was involved in the xtline
command though. As I said before, my data are in long format and when
I tried to use xtset StudyID Age, it says "varlist: StudyID: string
variable not allowed". When I created another ShortID that is integer,
xtset ShortID Age, it says "time variable must contain only integer
values". What do I have to do to make xtset work?? I read the help
file but I don't understand what I'm missing...
Thanks again for your help!
Ada
*
* 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/