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]

st: display results in a table, of bitest for varA, stratified by varB


From   Michael McCulloch <[email protected]>
To   [email protected]
Subject   st: display results in a table, of bitest for varA, stratified by varB
Date   Sat, 21 Dec 2013 12:56:10 -0800

Hello,
I have 3 variables:

	varA	numeric		values 0 or 1
	varB	string		values a, b, c... x, y, or z

varA in this experiment was randomly chosen from a bin, in which 20% were value==1, and 80% had value==0.
varB in this experiment has 26 values, a, b, c... x, y, or z.

The subject reaches into the bin, and places items represented by varA in another box, varB.
I am using bitest to run a two-sided test of whether the likelihood of varA==0.2, for every varB, with the command:

	bysort varB: bitest varA=.2

My question is, is there a way to efficiently display these results of bitest for varA  into rows of a table, with one row for each varB?


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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index