Dear all,
I am trying to figure out the derivation of p .The following program :
capture program drop kusi
program define kusi
quietly {
postfile kusi1 mean se p_l p_u p t using kusi2,replace
local i = 1
while `i' <= 200 {
drop _all
set obs 25
gen x = invnorm(uniform())*15+115
ttest x = 115
post kusi1 (r(mu_1)) (r(se)) (r(p_l)) (r(p_u)) (r(p)) (r(t))
local i = `i' + 1
}
}
postclose kusi1
end
kusi
use kusi2,clear
graph p_l p p_u t , xlabel (-3.5 , -3 to 3.5) ylabel (0,.25 to 1)
produces an interesting diagram .Can anyone give me a hint as to how p
the red curve), is derived ?
Victor
*
* 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/