Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Tyler Frazier <tyfrazier@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: AW: drawnorm for discrete variables |
Date | Fri, 30 Apr 2010 13:37:57 +0200 |
I want the output to look like this drawnorm x y z, n (200000) corr(c) sds(s) means(m) but a number of the variables are discrete, and sex is also there c is the correlation matrix of the 15 or so variables from a metropolitan area in a large african city thanks, Ty On Fri, Apr 30, 2010 at 1:30 PM, Martin Weiss <martin.weiss1@gmx.de> wrote: > > <> > > > What do you want your _discrete_ normal variable to look like in theory? As > in: > > > ***** > clear* > set obs 10000 > gen mydiscrvar=irecode(rnormal(),-4,-3,-2,-1,0,1,2,3,4) > hist mydiscrvar > ***** > > > > HTH > Martin > > -----Ursprüngliche Nachricht----- > Von: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Tyler Frazier > Gesendet: Freitag, 30. April 2010 12:50 > An: statalist@hsphsun2.harvard.edu > Betreff: st: drawnorm for discrete variables > > Whats the best way to drawnorm for discrete variables in stata -- for > example ethnicity, education, religion, occupation, etc... > > Thank you, > Ty Frazier > * > * 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/ > * * 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/