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]

st: How to Randomly Assign 4 Integers to a Dataset?


From   Carly Petracco <[email protected]>
To   [email protected]
Subject   st: How to Randomly Assign 4 Integers to a Dataset?
Date   Thu, 11 Nov 2010 18:17:01 -0500

 I have 4 values that I want to randomly assign to the observations in
my dataset.
 I do not want this to occur over a range (I know about runiform), all
I have 4 integers (i.e. 1, 5, 15, 20) that I want to randomly assign
to my observations, how do I do that?
 I have not been able to find a solution for this problem on the web
or in previous questions, so any help would be greatly appreciates!

 Best,
 Charlie
*
*   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