We’ve recently pushed an update to brewscheme on the development branch and will update the distribution page files over the next few days. These changes are part of the version 1.0.0 release candidate 2 of the project. Updates and Changes to brewscheme The primary change for release candidate 2 involves the initial completion of the … [Read more…]
D3js Mata Library Examples New example functions are being added fairly regularly to d3mata examples. The most recent update is centered on implementing a brush and link scatterplot matrix created by Mike Bostock. The hope is that this library will make it easier for others to create reusable components to develop D3.js based data visualizations from Stata. Update to … [Read more…]
The brewscheme toolkit for data visualization in Stata is almost ready for a stable version 1 release. All known bugs have been fixed and all of the planned features for version 1 have been implemented. More information can be found at the project page and source code repository.
The Stata program brewscheme (http://wbuchanan.github.io/brewscheme/brewtheme/) has been updated and now includes several features that provide even more flexibility to the end user. Check out the project page above to learn a bit more about the suite of tools bundled with the brewscheme package.
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