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: Assigning Students Randomly to Classes of Heterogeneous Sizes


From   Andy Baxter <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index