Try this instead.
clear
input a b c study p
26 85 41 1 0.056
12 56 23 2 0.862
45 85 96 3 0.996
45 86 91 4 0.005
end
g double pvalue=.
local number = _N
forv i = 1/`number' {
qui genhwi `=a[`i']' `=b[`i']' `=c[`i']'
qui replace pvalue = r(p_exact) in `i'
}
li
On 10/3/07, [email protected] <[email protected]> wrote:
> Thank you, Jeph, for your suggestion. Nonetheless, your approach did not
> work here. Any idea?
>
*
* 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/