Skip to content

Commit 362ecb1

Browse files
committed
fixed alpha bug
1 parent 2b7042d commit 362ecb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causal_testing/testing/estimators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def estimate_hazard_ratio(self):
823823

824824
# IPCW step 4: Use these weights in a weighted analysis of the outcome model
825825
# Estimate the KM graph and IPCW hazard ratio using Cox regression.
826-
cox_ph = CoxPHFitter()
826+
cox_ph = CoxPHFitter(alpha=self.alpha)
827827
cox_ph.fit(
828828
df=preprocessed_data,
829829
duration_col="tout",

0 commit comments

Comments
 (0)