CamDavidsonPilon / lifelines

Survival analysis in Python
lifelines.readthedocs.org
MIT License
2.38k stars 560 forks source link

Manually setting parameters #1611

Open Biorrith opened 6 months ago

Biorrith commented 6 months 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?