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

Re: st: Generating simulated data with binary variables

From   Maarten buis <>
Subject   Re: st: Generating simulated data with binary variables
Date   Fri, 14 Aug 2009 20:32:20 +0000 (GMT)

--- On Fri, 14/8/09, John Antonakis wrote:
> I know how to use corr2data to generate matrixes with know
> properties. However, what if one would like to generate
> binary data that correlates at a specific value with a
> continuous or other binary data? Is there a direct way to do
> this instead of generating continuous data and then
> dichotomizing it?

Some tricks for doing that are discussed in:
Maarten L. Buis (2007) Stata tip 48: Discrete uses for 
uniform(). The Stata Journal 7(3):434-435.

You can find a pre-publication draft at:

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

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