Here is an early draft of the article about brewscheme submitted to The Stata Journal: brewscheme.pdf