example using R for survival analysis on senate data