version 9 capture log close set more off log using ehc1.log, replace use rrdat1, clear gen des = tfin ~= ti /*destination state*/ gen tf = tfin - tstart + 1 /*ending time*/ ltable tf des, intervals(30) su h f /*command for life table estimation*/ log close