Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: AW: drawnorm for discrete variables


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: drawnorm for discrete variables
Date   Fri, 30 Apr 2010 13:30:11 +0200

<> 


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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index