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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: Assigning Students Randomly to Classes of Heterogeneous Sizes


From   Andy Baxter <baxterassoc@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Assigning Students Randomly to Classes of Heterogeneous Sizes
Date   Fri, 22 Apr 2011 12:48:57 -0400

Statalisters,

I am using Stata 11 on a dataset of students and their class
assignments that is structured like this:

_studentid  _year _school _grade _classid

Now, I want to randomly assign the students to classes--within the
same year, school, and grade--while keeping the existing class sizes
the same.

I would be grateful for any code that would accomplish this.

Thanks,

Andy Baxter
Charlotte-Mecklenburg Schools

*
*   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