diff --git a/yli/regress.py b/yli/regress.py index cd17a89..a84f673 100644 --- a/yli/regress.py +++ b/yli/regress.py @@ -697,9 +697,12 @@ class IntervalCensoredCox(RegressionModel): csv_str = csv_buf.getvalue() # Run intcens binary - proc = subprocess.run([config.hpstat_path, 'intcox', '-', '--output', 'json'], input=csv_str, capture_output=True, encoding='utf-8', check=True) + proc = subprocess.run([config.hpstat_path, 'intcox', '-', '--output', 'json'], input=csv_str, stdout=subprocess.PIPE, stderr=None, encoding='utf-8', check=True) raw_result = json.loads(proc.stdout) + from IPython.display import clear_output + clear_output(wait=True) + z_critical = -stats.norm.ppf(config.alpha / 2) result.terms = {raw_name: SingleTerm( raw_name=raw_name,