Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: constrained tobit regression?


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: constrained tobit regression?
Date   Mon, 4 Feb 2013 13:10:08 +0000

The comma on a command line that indicates the divide between options
and everything else is a toggle, like an on-off light switch. One
comma flips from

"this stuff isn't an option call"

to

"this stuff is option calls"

and subsequent commas reverse whatever is the current state. This
doesn't appear to be quite universal, but for example this works:

. sysuse auto
(1978 Automobile Data)

. summarize weight , detail, if foreign

                        Weight (lbs.)
-------------------------------------------------------------
      Percentiles      Smallest
 1%         1760           1760
 5%         1830           1830
10%         1930           1930       Obs                  22
25%         2020           1980       Sum of Wgt.          22

50%         2180                      Mean           2315.909
                        Largest       Std. Dev.      433.0035
75%         2650           2750
90%         2830           2830       Variance         187492
95%         3170           3170       Skewness       1.056582
99%         3420           3420       Kurtosis       3.368013

I wouldn't, however, recommend that anybody work like this unless you
have an essentially perfect understanding of Stata syntax, in which
case you don't need it.

Nick

On Fri, Feb 1, 2013 at 1:00 PM, Maarten Buis <maartenlbuis@gmail.com> wrote:

 In a Stata
> command the comma indicates "all that follows are options", so you do
> not separate options with commas.
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index