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 on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: Syntax for trimming distribution tail In xtabond2


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Syntax for trimming distribution tail In xtabond2
Date   Wed, 13 Jun 2012 18:09:05 +0100

There is no context here. But even assuming that r(p1) and r(p99) are available from some previous command, the quote characters here are incorrect -- you would need left single quotes as opening delimiters -- and one parenthesis is unmatched. 

... if inrange(y, `r(p1)',`r(p99)')

is more likely to be what you have in mind. 

This is not to be construed as supporting trimming distribution tails, in my view a horrible method.  

Nick 
n.j.cox@durham.ac.uk 

Jason Hecht

Apparently the following syntax that worked in xtabond did not work in xtabond2:

xtabond y l.x1 l.x2 l.x3 if inrange(y, 'r(p1','r(p99)'), noconstant


*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index