From 0caccb08e962692b7b10facbb3ccc0af69828a86 Mon Sep 17 00:00:00 2001 From: Andy Shapiro Date: Mon, 11 Nov 2024 21:29:37 -0500 Subject: [PATCH] show correct d.f. for continuous summary (#72) * try to detect enviro * fix bug on reporting of df --- frontend/src/components/IndividualModel/Summary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/IndividualModel/Summary.js b/frontend/src/components/IndividualModel/Summary.js index a934437..a516a25 100644 --- a/frontend/src/components/IndividualModel/Summary.js +++ b/frontend/src/components/IndividualModel/Summary.js @@ -32,7 +32,7 @@ class Summary extends Component { const isContinuous = outputStore.getModelType === mc.MODEL_CONTINUOUS, results = model.bmd ? model : model.results, p_value = isContinuous ? results.tests.p_values[3] : results.gof.p_value, - df = isContinuous ? results.tests.p_values[3] : results.gof.df; + df = isContinuous ? results.tests.dfs[3] : results.gof.df; data = [ ["BMD", ff(results.bmd), results.bmd], ["BMDL", ff(results.bmdl), results.bmdl],