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: RE: RE: RE: RE: RE: AW: xtline, xtline2 and cmissing(n)
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: RE: RE: RE: RE: RE: RE: AW: xtline, xtline2 and cmissing(n)
Date
Sat, 15 May 2010 00:08:35 +0200
<>
Last word on this issue from my side: I showed earlier how the -overlay-
variant of -xtline- requires -plot#opts()- specifications, which do accept
the -cmissing()- option. This seems to work just fine in 10.1. -help xtline-
does not promise to accept your syntax. -overlay()- only honours
-overlaid_options-...
***********
clear*
vers 10.1
set obs 4
gen id=_n
expand 10
bys id: gen time=_n
gen x=runiform()
xtset id time
replace x=. if runiform()<.3
local opts cmissing(n)
xtline2 x, overlay plot1opts(`opts') plot2opts(`opts') /*
*/ plot3opts(`opts') plot4opts(`opts')
***********
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Giovanni Vecchi
Sent: Freitag, 14. Mai 2010 23:43
To: [email protected]
Subject: st: RE: RE: RE: RE: RE: AW: xtline, xtline2 and cmissing(n)
Martin
to make ma point clear, I'll build on your example:
**************
clear
vers 11
set obs 4
gen id=_n
expand 10
bys id: gen time=_n
gen x=runiform()
xtset id time
replace x=. if runiform()<.3
xtline x, overlay cmissing(n) name(mygr, replace)
**************
the last line returns an error message. the two options -cmissing(n)- and
-overlay- do not seem to get along.
-xtline2- suffers from the same problem. Following up on the above example:
**************
version 10.1
xtline2 x, overlay cmissing(n) name(mygr, replace)
**************
returns the same error message.
My conclusion is that there is a problem with -xtline- in need of
consideration.
Personally, I also do not like to be forced to switch between -xtline- and
-xtline2-, depending on the Stata version I am (or my co-author is) using.
Giovanni
------------------------------------------------------------------
Giovanni Vecchi
Associate Professor
Department of Economics
University of Rome "Tor Vergata"
voice + 39 06 72595730
fax + 39 06 2020500
email [email protected]
web http://www.economia.uniroma2.it/vecchi/
-----------------------------------------------------------------
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Martin Weiss
> Sent: Friday, May 14, 2010 8:38 PM
> To: [email protected]
> Subject: st: RE: RE: RE: RE: AW: xtline, xtline2 and cmissing(n)
>
>
> <>
>
> Giovanni:
>
> You are welcome! I am not sure what you are demanding from StataCorp,
> though: Given our discussion today, Stata 11 users have the full
> functionality that you are asking for, and Stata 10 users can easily
> download -xtline2-. So I really do not understand what more you could
> possibly ask for?
>
> HTH
> Martin
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Giovanni Vecchi
> Sent: Freitag, 14. Mai 2010 19:40
> To: [email protected]
> Subject: st: RE: RE: RE: AW: xtline, xtline2 and cmissing(n)
>
> Nick, Martin, José Maria
>
> thank you so much for your help.
>
> -linkplot- is great and does the job I was hoping for.
>
> I take this opportunity to kindly ask Statacorp to fix -xtline- as soon as
> possible. I believe that the situation discussed today is quite common and
> many statausers would appreciate it.
>
> Giovanni
>
>
> ------------------------------------------------------------------
> Giovanni Vecchi
> Associate Professor
> Department of Economics
> University of Rome "Tor Vergata"
>
> voice + 39 06 72595730
> fax + 39 06 2020500
> email [email protected]
> web http://www.economia.uniroma2.it/vecchi/
> -----------------------------------------------------------------
>
> > -----Original Message-----
> > From: [email protected] [mailto:owner-
> > [email protected]] On Behalf Of Nick Cox
> > Sent: Friday, May 14, 2010 5:15 PM
> > To: [email protected]
> > Subject: st: RE: RE: AW: xtline, xtline2 and cmissing(n)
> >
> > I don't know about -xtline2-. But -linkplot- from SSC might offer you an
> > alternative.
> >
> > -linkplot- is not automatically geared to panel data, but linking on
> > panel identifier and plotting against time should produce the kind of
> > results I think you want.
> >
> > Nick
> > [email protected]
> >
> > Giovanni Vecchi
> >
> > thank you.
> >
> > Your examples work fine.
> >
> > However, I've just realized that a conflict arises if you also include
> > the
> > option -overlay- among the options (no matter whether you use -xtline-
> > or
> > -xtline2-).
> >
> > Once I include both -cmissing(n)- and -overlay- ... I'm back to square
> > one:
> >
> > . xtline2 x, overlay cmissing(n) name(mygr2, replace) nodraw
> >
> > option cmissing() not allowed
> > r(198);
> >
> > Martin Weiss
> >
> > > In 10.1, I get the old behavior with -xtline-, and the new behavior,
> > i.e.
> > > respect for -cmissing()-, for -xtline2-
> > > (http://www.stata.com/statalist/archive/2009-10/msg00291.html), just
> > as
> > > promised:
> > >
> > >
> > > *************
> > > clear*
> > > vers 10.1
> > >
> > > set obs 4
> > > gen id=_n
> > > expand 10
> > > bys id: gen time=_n
> > > gen x=runiform()
> > > xtset id time
> > > replace x=. if runiform()<.3
> > >
> > >
> > > xtline x, cmissing(n) name(mygr, replace) nodraw
> > > xtline2 x, cmissing(n) name(mygr2, replace) nodraw
> > >
> > > graph combine mygr mygr2, col(1)
> > > *************
> > >
> > >
> > > In 11, both yield identical results.
> >
> > Giovanni Vecchi
> >
> > > following up on a couple of emails on the failure of -xtline- to
> > account
> > > for
> > > the -cmissing(n)- option
> > > (http://www.stata.com/statalist/archive/2009-10/msg00291.html), I'm
> > writing
> > > to report that, in my experience, the bug in -xtline- has not been
> > fixed.
> > > Nor does -xtline2-, kindly provided by Jeff Pitblado, work for me.
> > >
> > > After running a number of experiments under both Stata 10.1 and Stata
> > 11,
> > > I'm now short of ideas and seeking for your advice.
> >
> > *
> > * 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/
>
>
> __________ Informazioni da ESET NOD32 Antivirus, versione del database
> delle
> firme digitali 5115 (20100514) __________
>
> Il messaggio è stato controllato da ESET NOD32 Antivirus.
>
> www.nod32.it
>
>
>
> *
> * 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/
__________ Informazioni da ESET NOD32 Antivirus, versione del database delle
firme digitali 5115 (20100514) __________
Il messaggio è stato controllato da ESET NOD32 Antivirus.
www.nod32.it
__________ Informazioni da ESET NOD32 Antivirus, versione del database delle
firme digitali 5115 (20100514) __________
Il messaggio è stato controllato da ESET NOD32 Antivirus.
www.nod32.it
*
* 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/