# Do we need to use weights in imbalanced survival models?

**URL:** <https://discourse.julialang.org/t/do-we-need-to-use-weights-in-imbalanced-survival-models/99008>\
**Category:** Statistics\
**Created:** [May 17, 2023, 5:08pm UTC](https://discourse.julialang.org/t/do-we-need-to-use-weights-in-imbalanced-survival-models/99008 "2023-05-17T17:08:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)\
**Post date:** [May 17, 2023, 5:08pm UTC](https://discourse.julialang.org/t/do-we-need-to-use-weights-in-imbalanced-survival-models/99008/1 "2023-05-17T17:08:40Z")

</div>

Hello.

Say I am using a Cox model to predict cancer, but my dataset has 10000 healthy patients and just 10 with cancer during the studied interval.

Do we need to use weights to compensate imbalance with these kind of models? Or will i get better results? (for prediction or inference).
