Stata Conference 2016 D3.js slides
brewscheme 1.0 is now available from the project page and the SSC archives. You can install it by using the following commands: // To install from the project page: net inst brewscheme, from(“https://wbuchanan.github.io/brewscheme/”) replace // To install from the SSC archives ssc inst brewscheme, replace The version 1.0 release of includes tools for color interpolation, … [Read more…]
See the project page for additional information, the GitHub repository for the source code, or the examples repository for examples of how to use the library to create D3 based data visualizations from Stata.
A colleague recently asked me about a native solution in Stata to create a graph of the ROCs for multiple predictors (e.g., independent variables, covariates, right-hand side variables, etc…). I thought it might be helpful to provide a post to illustrate how to do this using data from the Strategic Data Project’s College Going Toolkit.
// Move into the directory where you've saved and unzipped the file from the site above
// Load dataset
use analysis/CG_Analysis.dta, clear
// Split Free/Reduced Lunch variable into separate indicator variables
qui: ta frpl_ever, gen(frl)
// Split Race/Ethnicity variable into separate indicator variables
qui: ta race_ethnicity, gen(race)
/* Estimate Sensitivity/Specificity for the predictors below and generate a graph showing the ROC curve */
roccomp ontime_grad frl2 frl3 race1 race2 race3 race4 race6, graph
// Save the graph generated by the command
gr export ../ROCexample.png, as(png) replace
Last week marked the official start to Dr Buchanan’s two year fellowship with the Mississippi Department of Education. In the immediate future Dr Buchanan will be working with the IT/Information Systems staff at MDE to program, develop, and deploy the state’s new accountability model.