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

st: Re: Monte Carlo Simulation with a binomial probability


From   Murray Finkelstein <murray.finkelstein@utoronto.ca>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: Monte Carlo Simulation with a binomial probability
Date   Tue, 12 Nov 2002 09:36:17 -0500

Good morning. I would like to perform a sensitivity analysis of some
regression results. I know the proportion of smokers by neighbourhood, but
I do not have information about individual smoking habits. I wish to
perform Monte Carlo simulations in which, in each run, I assign each
individual a dichotomous (0/1) smoking variable based upon the probability
of his being a smoker (as derived from the proportion in his
neighbourhood). Is there a Stata function that will allow me to randomly
draw 0s or 1s based upon the binomial proportion?


--
Murray M. Finkelstein  PhD MD CCFP
Department of Family and Community Medicine
University of Toronto

e-mail: murray.finkelstein@utoronto.ca
Phone: 416-326-7879
Fax: 416-326-7761


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