Changing output of summary statistics into a dataframe #1354
-
| Hello! I was wondering if anyone had some thoughts on this. I have fitted a CoxPHFitter to my data and have the summary results. I want to change the summary statistics into a data frame so that I can pick the variables which are significant. Is there a way to do this in lifelines? The equivalent of this in a regression would be changing it to HTML and then reading it. Something along the lines of:  | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
| Hi @wangarikiarie, does  | 
Beta Was this translation helpful? Give feedback.
Hi @wangarikiarie,
does
results.summarygive you what you are looking for? https://github.com/CamDavidsonPilon/lifelines/blob/master/lifelines/fitters/coxph_fitter.py#L2167