David Airey wrote:
What is the easiest way of generating correlated binary data (greater
than 2 observations per cluster) in Stata?
I am trying to download this paper:
Al-Osh and Lee (2001) A simple approach for generating correlated
binary variates. J. Statist. Comput. Simul. Vol. 70, pp. 231-255.
--------------------------------------------------------------------------------
You can download -ovbd- from SSC to generate correlated binary data with two or
more observations per cluster. You'll also need to have another user-written
command installed, -ridder-, which is called by -ovbd-.
The syntax for -ovbd- is directly analogous to that of -drawnorm-, except for
the -sd()- option, of course. For the same reason, there are constraints on
what you can specify for a combination of mean vector and correlation matrix.
Joseph Coveney
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/