Skip to content

Commit

Permalink
debug _sa
Browse files Browse the repository at this point in the history
  • Loading branch information
fatisati committed Jan 23, 2024
1 parent bd590fd commit 2399e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ehrapy/tools/_sa.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def cox_ph(adata: AnnData, duration_col: str, event_col: str, entry_col: str = N
>>> adata[:, ['censor_flg']].X = np.where(adata[:, ['censor_flg']].X == 0, 1, 0)
>>> cph = ep.tl.cox_ph(adata, "mort_day_censored", "censor_flg")
"""
df = ehrapy_ad.anndata_to_df(adata)
df = anndata_to_df(adata)
df = df[[duration_col, event_col, entry_col]]
cph = CoxPHFitter()
cph.fit(df, duration_col, event_col, entry_col=entry_col)
Expand Down

0 comments on commit 2399e72

Please sign in to comment.