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/