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

st: ahout post


From   rghuang <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: ahout post
Date   Fri, 16 Jan 2004 21:16:21 +0800

i use the following program in stata8,but when it finish,the variable se and bias all are missing.     
 
capture program drop Accum
        program define Accum
                postfile results se bias n using sim, replace
                forvalues n=20(20)2000 {
                        qui bs "regress mpg weight for" "_b[for]", reps(`n') 
                        post results (r(se)) (r(bias)) (`n')
                }
                postclose results
        end
        Accum
        use sim, clear


then i add version 7 to it ,then it work fine.see following:
capture program drop Accum
        program define Accum
                version 7
                postfile results se bias n using sim, replace
                forvalues n=20(20)2000 {
                        qui bs "regress mpg weight for" "_b[for]", reps(`n') 
                        post results (r(se)) (r(bias)) (`n')
                }
                postclose results
        end
        Accum
        use sim, clear

so my question is :if i do not add verion 7,then what should i modify the program.
thank you!

*
*   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