Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Derivation of p


From   "victor michael zammit" <[email protected]>
To   <[email protected]>
Subject   st: Re: Derivation of p
Date   Wed, 23 Apr 2003 21:38:13 +0200

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index