IDEAS home Printed from
   My bibliography  Save this paper

Setting up Loops and Macros in Stata to Estimate Value-added Scores for Teacher Evaluations


  • Chen An

    (Department of Accountability, Research and Evaluation)


Value-added models (VAM) are required by many states to hold teachers accountable for students’ growth within a certain period of time. For instance, the Florida Department of Education developed VAM for state-mandated assessments. Meanwhile, to evaluate teachers of subjects or grades not assessed by the state models, local districts in Florida started to build their own. However, with hundreds of locally-developed and/or statewide-administered standardized assessments, many districts found it difficult to develop systematic and efficient macros to run hundreds of statistical models and combine results. This presentation demonstrates a template to set up loops and macros in Stata that run a variety of linear regression models (single-level models with fixed effects, two-level, and three-level models with random effects) for the purpose of generating VAM-related statistics (e.g., point estimates, appropriate standard errors, performance levels, and model specification statistics) and save results in designated files. Specifically, in the case of single-level models, the presenter developed commands to make Stata compare the output results and automatically select the teacher with a median-sized effect as the reference for each model. By doing so no human judgement is involved during the looping process, thus making it time-efficient and void of human errors.

Suggested Citation

  • Chen An, 2016. "Setting up Loops and Macros in Stata to Estimate Value-added Scores for Teacher Evaluations," 2016 Stata Conference 22, Stata Users Group.
  • Handle: RePEc:boc:scon16:22

    Download full text from publisher

    File URL:
    Download Restriction: no

    More about this item


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:scon16:22. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.