[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: Re: RE: generating correlated binary data |

Date |
Sun, 14 Jun 2009 11:58:00 +0200 |

<> Joseph,

set seed `=date("2007-02-27", "ymd")' run by setting -vers 9-. For 10, I have to switch to set seed `=date("2007-02-27", "YMD")' HTH Martin _______________________

To: <statalist@hsphsun2.harvard.edu> Sent: Sunday, June 14, 2009 6:22 AM Subject: st: RE: generating correlated binary data

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 withtwo ormore observations per cluster. You'll also need to have anotheruser-writtencommand installed, -ridder-, which is called by -ovbd-.The syntax for -ovbd- is directly analogous to that of -drawnorm-, exceptforthe -sd()- option, of course. For the same reason, there are constraintsonwhat you can specify for a combination of mean vector and correlationmatrix.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/

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

**Follow-Ups**:**st: RE: Re: RE: generating correlated binary data***From:*"Joseph Coveney" <jcoveney@bigplanet.com>

**References**:**st: generating correlated binary data***From:*David Airey <david.airey@Vanderbilt.Edu>

**st: RE: generating correlated binary data***From:*"Joseph Coveney" <jcoveney@bigplanet.com>

- Prev by Date:
**Re: st: Working with DHS for Ghana Year 2003** - Next by Date:
**Re: st: Working with DHS for Ghana Year 2003** - Previous by thread:
**st: RE: generating correlated binary data** - Next by thread:
**st: RE: Re: RE: generating correlated binary data** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |