Skip to content

Commit

Permalink
added explanation, as to where the results are stored
Browse files Browse the repository at this point in the history
  • Loading branch information
aGuyLearning committed Jan 8, 2025
1 parent e340a28 commit c6a81df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ehrapy/tools/_sa.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ def cox_ph(
The Cox proportional hazards model (CoxPH) examines the relationship between the survival time of subjects and one or more predictor variables.
It models the hazard rate as a product of a baseline hazard function and an exponential function of the predictors, assuming proportional hazards over time.
The results will be stored in the uns slot of the AnnData object under the key 'cox_ph' unless specified otherwise in the uns_key parameter.
See https://lifelines.readthedocs.io/en/latest/fitters/regression/CoxPHFitter.html
Expand Down Expand Up @@ -486,6 +487,8 @@ def weibull_aft(
where the underlying assumption is that the logarithm of survival time follows a Weibull distribution.
It models the survival time as an exponential function of the predictors, assuming a specific shape parameter
for the distribution and allowing for accelerated or decelerated failure times based on the covariates.
The results will be stored in the uns slot of the AnnData object under the key 'cox_ph' unless specified otherwise in the uns_key parameter.
See https://lifelines.readthedocs.io/en/latest/fitters/regression/WeibullAFTFitter.html
Args:
Expand Down Expand Up @@ -582,6 +585,8 @@ def log_logistic_aft(
This model operates under the assumption that the logarithm of survival time adheres to a log-logistic distribution, offering a flexible framework for understanding the impact of covariates on survival times.
By modeling survival time as a function of predictors, the Log-Logistic AFT model enables researchers to explore
how specific factors influence the acceleration or deceleration of failure times, providing valuable insights into the underlying mechanisms driving event occurrence.
The results will be stored in the uns slot of the AnnData object under the key 'cox_ph' unless specified otherwise in the uns_key parameter.
See https://lifelines.readthedocs.io/en/latest/fitters/regression/LogLogisticAFTFitter.html
Args:
Expand Down

0 comments on commit c6a81df

Please sign in to comment.