Skip to content

Commit

Permalink
add nested dichotomous bmdu visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
shapiromatron committed Oct 17, 2024
1 parent aaf1054 commit 1e95227
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/IndividualModel/Summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Summary extends Component {
data = [
["BMD", ff(model.results.bmd), model.results.bmd],
["BMDL", ff(model.results.bmdl), model.results.bmdl],
["BMDU", ff(model.results.bmdu), model.results.bmdu],
["AIC", ff(model.results.aic), model.results.aic],
[
<span key={0}>
Expand Down
9 changes: 7 additions & 2 deletions frontend/src/components/Output/FrequentistResultTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ const getModelBinLabel = function(output, index) {
},
getColWidths = function(store) {
if (store.isNestedDichotomous) {
return store.recommendationEnabled ? [20, 12, 12, 12, 12, 32] : [20, 20, 20, 20, 20];
return store.recommendationEnabled
? [20, 11, 11, 11, 11, 11, 25]
: [20, 16, 16, 16, 16, 16];
} else {
return store.recommendationEnabled
? [12, 8, 8, 8, 8, 8, 10, 10, 28]
Expand Down Expand Up @@ -248,6 +250,9 @@ class FrequentistRow extends Component {
<td>
<FloatingPointHover value={results.bmd} />
</td>
<td>
<FloatingPointHover value={results.bmdu} />
</td>
<td>{ff(results.combined_pvalue)}</td>
<td>
<FloatingPointHover value={results.aic} />
Expand Down Expand Up @@ -341,7 +346,7 @@ class FrequentistResultTable extends Component {
<th>Model</th>
<th>BMDL</th>
<th>BMD</th>
{isNestedDichotomous ? null : <th>BMDU</th>}
<th>BMDU</th>
<th>
<i>P</i>-Value
</th>
Expand Down

0 comments on commit 1e95227

Please sign in to comment.