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: graph results of bitest stratified with by(var)
From
Michael McCulloch <[email protected]>
To
[email protected]
Subject
st: graph results of bitest stratified with by(var)
Date
Wed, 22 Jan 2014 21:57:13 -0800
I am using bitest for a two-sided test on whether the mean of varB is different than 0.2, and testing on each level of varA:
bysort varA: bitest varB=.2
varA has ~30 values. I wish to display these in a table (showing N, observed p, expected p, and the two-sided p-value), without manual cut-and-paste, as the test will be used to monitor an ongoing training program.
I note that the results of bitest are stored as:
r(N) number N of trials
r(P_p) assumed probability p of success
r(k) observed number k of successes
r(p_l) lower one-sided p-value
r(p_u) upper one-sided p-value
r(p) two-sided p-value
However, I do not know how one uses these r(**) values. Can anyone suggest how one would go about this?
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/