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…]
Why the need for a regular expression package? Since 2005, people have had questions about Stata regular expressions; a FAQ on regular expressions from Stata confirms how long the use of regular expressions in Stata has raised questions. With the recent implementation of Unicode support in Stata, regular expressions got a bit of a facelift, … [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
Recently I’ve been battling with ODBC on a Linux server and thought I’d share something analogous to a template for the different files needed to set up ODBC connections with others. I did all of this on a 64-bit Ubuntu 14.04 server, but things should generally be similar for other platforms with slight modification. If you’re working … [Read more…]
New Stata programs are available from the website of the Executive Director of PACES William R. Buchanan . The first package -email- is still in the early stages of development and allows users to send email directly from Stata. This is particularly useful if you need to perform many operations, such as creating graphs, which … [Read more…]
Dr Buchanan has made several Stata programs available from his personal website and will also make these programs available from the PACES website. In the immediate future, users can type net describe http://www.williambuchanan.net/stata to find out more about what programs are available for download.
I recently had to create a bar graph with reference categories and when I was finished I realized that it was something that I should probably share given the amount of time it took to work through things. There are a few things to note before moving forward though. The first is that I was … [Read more…]