Do not compute standard errors in yli.turnbull if CIs are not required

This commit is contained in:
RunasSudo 2023-12-31 18:34:30 +11:00
parent 035b1592dc
commit 8e30c41cc4
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -249,6 +249,9 @@ def calc_survfunc_turnbull(time_left, time_right, *, ci=True, step_loc=0.5, maxi
if se_method: if se_method:
hpstat_args.append('--se-method') hpstat_args.append('--se-method')
hpstat_args.append(se_method) hpstat_args.append(se_method)
elif not ci:
hpstat_args.append('--se-method')
hpstat_args.append('none')
if zero_tolerance: if zero_tolerance:
hpstat_args.append('--zero-tolerance') hpstat_args.append('--zero-tolerance')
hpstat_args.append(str(zero_tolerance)) hpstat_args.append(str(zero_tolerance))