|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: esta: how to stratify model types in rows
Hello, I'm inquiring whether esta can be set to display two different
models, of two different comparisons. I'll illustrate using Stata's
auto.dta. I'm going to examine the influence of weight on price: with
and without mpg, in price range above and below $7,000.
The code below will display the four models in each of four columns:
A B C D
However, I'd like to learn how to display them as:
A B
C D
sysuse auto, clear
esto clear
esto: regress price weight if price <7000
esto: regress price weight if price >7000
esto: regress price weight mpg if price <7000
esto: regress price weight mpg if price >7000
esta, se brackets drop(mpg _cons) ///
mtitles("<$7,000" ///
">$7,000" ///
"<$7,000, mpg" ///
">$7,000, mpg")
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/