*** Illustration code for lowcate.ado clear webuse set http://www.stata-press.com/data/r13 webuse cattaneo2 *** 1. drcate *** user-specified bandwidth drcate bweight alcohol mage medu fage, bwidth(0.781) ps("logit") graph("on") ci("on") ate("on") ereturn list *** defualt bandwidth by ROT drcate bweight alcohol mage medu fage, ps("logit") graph("on") ci("on") ate("on") ereturn list *** 2. drcateCV *** user-specified bandwidth drcateCV bweight alcohol mage medu fage, bwidth(0.781) ps("logit") graph("on") ci("on") ate("on") ereturn list *** default bandwidth by cross-validation drcateCV bweight alcohol mage medu fage, ps("logit") graph("on") ci("on") ate("on") ereturn list /* varlist [1] : dependent variable varlist [2] : treatment variable varlist [3] : covariate of interest varlist [4::end] : other covariates ps : "logit" or "probit" bwidth : user-specified bandwidth # */