CamDavidsonPilon / lifelines

Survival analysis in Python
lifelines.readthedocs.org
MIT License
2.32k stars 551 forks source link

Manually setting parameters #1611

Open Biorrith opened 1 month ago

Biorrith commented 1 month ago

I am working with a dataset that has a lot of missing values. Because of this, I am implementing multiple imputation, by which I get M different complete datasets. After this, I train M different CoxPHFitter()'s, which I wish to pool into one model. To do this, I extract all the parameters from the models and combine them using Rubins rules. However, once I obtain the pooled coefficients, I can't find a way to place them back into the model. Simply setting the params_ of the model effectively does nothing. Is it even possible to do so?