Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: AW: drawnorm for discrete variables


From   Tyler Frazier <[email protected]>
To   [email protected]
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 <[email protected]> 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: [email protected]
> [mailto:[email protected]] Im Auftrag von Tyler Frazier
> Gesendet: Freitag, 30. April 2010 12:50
> An: [email protected]
> 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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index