You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A very simple test case that illustrate the result discrepancy, the param for x are identical for both cases, but the baseline cumulative hazard are different, especially the index t are of different values! My fault if it is due to any misusage of the 2 packages.
For what it's worth: the apparent R/Python mismatch might have the source as the R/Stata mismatch, as described here.
I mention it only because when I flipped basehaz(cox_pp_00, centered=FALSE) in your MWE to basehaz(cox_pp_00, centered=TRUE), the output was identical to centered=FALSE:
The identical output, to me, suggests that centered isn't touching the part of survival's behavior that gives rise to the R/Stata differences, meaning that behavior's still in play to explain the R/Python discrepency.
A very simple test case that illustrate the result discrepancy, the param for x are identical for both cases, but the baseline cumulative hazard are different, especially the index t are of different values! My fault if it is due to any misusage of the 2 packages.
Python Version
Output
R Version
Output
The text was updated successfully, but these errors were encountered: