*change name of path to read in fulldata.dat infile pubid entry exit event p1 p2 p3 p4 per1234 using C:\mikefolder\mikeFolder\survivalmethods\programsforweb\Figures\fulldata.dat stset exit, failure(event) enter(entry) streg if p1==1, distribution(gamma) *command fits a general gamma to period 1 data streg if p2==1, distribution(gamma) *command fits a general gamma to period 2 data streg if p3==1, distribution(gamma) *command fits a general gamma to period 3 data streg if p4==1, distribution(gamma) *command fits a general gamma to period 4 data