Dear Statalist community,
I am working with Stata 13 on Mac. I am using a program to run simulations of Poisson regression (1,000 different samples drawn from a larger population):
After the simulation I have the median of incidence-rate ratio [sum b_1], but not its 95%CI. How can I retrieve the lower and upper levels of the 95%CI for the 1,000 simulations (so that I can have their summary statistics and present a 95%CI of my median IRR)?
Thanks a lot
federica
I am working with Stata 13 on Mac. I am using a program to run simulations of Poisson regression (1,000 different samples drawn from a larger population):
Code:
program define program1, rclass drop _all use "/International Health/DBs/bdd/An2013sub2.dta" sample 1,c by(m) poisson SMc Mc, offset(n_s) return scalar b1=exp(_b[Mc]) return scalar b2=_se[Mc] end simulate b_1=r(b1) b_2=r(b2) , reps (1000): program1 sum b_1 b_2, d program drop _all
Thanks a lot
federica
Comment