Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: How to use Postfile without using a new Stata dataset


From   "Austin Nichols" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: How to use Postfile without using a new Stata dataset
Date   Thu, 4 Oct 2007 00:30:11 -0400

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, tiago.pereira@incor.usp.br <tiago.pereira@incor.usp.br> 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/



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