version 9.2 sysuse nlsw88 centile wage, c(2.5 97.5) local l=r(c_1) local r=r(c_2) kdensity wage, xline(`l') xline(`r') keep if inrange(wage, `l', `r') // ------- end of file ------------------