Ying -
If Z is a Stata variable and you want a two-sided p-value (what is reported
in standard Stata output) then use
gen pv=2*(1-norm(abs(Z)))
AL Feiveson
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of [email protected]
Sent: Friday, December 09, 2005 12:35 PM
To: [email protected]
Subject: st: Create P value for Z score
Hi, all,
I have a variable which is the Z score of Beta coeffcient (Standard normal
distribution). I also want to create a new variable which is the p value of
the Z score. Does anybody have the command or programs to share?
Thanks,
Ying
*
* 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/
*
* 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/