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: -statsby- with -tabulate-: confirming output
From
Michael McCulloch <[email protected]>
To
[email protected]
Subject
st: -statsby- with -tabulate-: confirming output
Date
Sat, 25 Jan 2014 10:51:21 -0800
Hello,
I'm seeking to create a table with -statsby-, combined with -tabulate-.
Might anybody have an idea why the row percentages calculated with -tab- by itself, are nor reproduced when -tab- is combined with -statsby-?
Example code:
sysuse auto.dta,clear
gen choose="yes" if price<6000
replace choose="no" if price>=6000
tab foreign choose, row
statsby, clear by(foreign): tab foreign choose, row
l
Best wishes,
Michael McCulloch
--
Pine Street Foundation, since 1989
124 Pine Street | San Anselmo | California | 94960-2674
P: (415) 407-1357 | F: (206) 338-2391 | http://www.PineStreetFoundation.org
*
* 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/