Skip to content

Commit

Permalink
show correct d.f. for continuous summary (#72)
Browse files Browse the repository at this point in the history
* try to detect enviro

* fix bug on reporting of df
  • Loading branch information
shapiromatron authored Nov 12, 2024
1 parent f1d4b4f commit 0caccb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/IndividualModel/Summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 0caccb0

Please sign in to comment.