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: -capture noisily- shorthand


From   annoporci <annoporci@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: -capture noisily- shorthand
Date   Wed, 16 Jan 2013 02:57:21 +0800

Dear Nick,

about the -cn- program:

program cn
           * no version number
            capture noisily `0'
end

But that will work only as a prefix to single-line commands.

Nick

I'm not sure what you mean by "single-line commands,"  As far as I
can tell, it's working well with what looks to me like a two-line command (copy-pasted from an example I just ran):

cn arch `var' if inrange(date,mdy(1,1,2007),mdy(12,27,2012)) ///
          , arch(1) garch(1)

It also appears to be working on commands written over several lines but with a semi-colon delimit (this one had over 15 lines but I cut some out).

     #delimit ;
     cn line `var'_ht_garch11 date
        ,
	ylabel(, angle(0) grid)
	xlabel(,format(%tdCY)labsize(small))
     ; #delimit cr


And thanks again.

--
Patrick Toche.
*
*   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