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, 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" <>
To   <>
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

set obs 10000
gen mydiscrvar=irecode(rnormal(),-4,-3,-2,-1,0,1,2,3,4)
hist mydiscrvar


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Tyler Frazier
Gesendet: Freitag, 30. April 2010 12:50
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:

*   For searches and help try:

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