-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0d4f07
commit 2c5e8ce
Showing
5 changed files
with
79 additions
and
148 deletions.
There are no files selected for viewing
66 changes: 0 additions & 66 deletions
66
frontend/src/components/IndividualModel/ContinuousSummary.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import {inject, observer} from "mobx-react"; | ||
import PropTypes from "prop-types"; | ||
import React, {Component} from "react"; | ||
|
||
import TwoColumnTable from "@/components/common/TwoColumnTable"; | ||
import {ff, fourDecimalFormatter, fractionalFormatter} from "@/utils/formatters"; | ||
|
||
@inject("outputStore") | ||
@observer | ||
class Summary extends Component { | ||
render() { | ||
const {outputStore} = this.props; | ||
let data; | ||
|
||
if (outputStore.isMultitumor) { | ||
data = [ | ||
["BMD", ff(outputStore.modalModel.bmd)], | ||
["BMDL", ff(outputStore.modalModel.bmdl)], | ||
["BMDU", ff(outputStore.modalModel.bmdu)], | ||
["Slope Factor", ff(outputStore.modalModel.slope_factor)], | ||
["AIC", ff(outputStore.modalModel.fit.aic)], | ||
[ | ||
<span key="0"> | ||
<i>P</i>-Value | ||
</span>, | ||
fourDecimalFormatter(outputStore.modalModel.gof.p_value), | ||
], | ||
["Overall d.f.", ff(outputStore.modalModel.gof.df)], | ||
["Chi²", ff(outputStore.modalModel.fit.chisq)], | ||
["-2* Log(Likelihood Ratio)", ff(outputStore.modalModel.fit.loglikelihood)], | ||
]; | ||
} else if (outputStore.isNestedDichotomous) { | ||
data = [ | ||
["BMD", ff(outputStore.modalModel.results.bmd)], | ||
["BMDL", ff(outputStore.modalModel.results.summary.bmdl)], | ||
["BMDU", ff(outputStore.modalModel.results.summary.bmdu)], | ||
["AIC", ff(outputStore.modalModel.results.summary.aic)], | ||
[ | ||
<span key={0}> | ||
<i>P</i>-value | ||
</span>, | ||
ff(outputStore.modalModel.results.combined_pvalue), | ||
], | ||
["d.f.", ff(outputStore.modalModel.results.dof)], | ||
[ | ||
<span key={1}> | ||
Chi<sup>2</sup> | ||
</span>, | ||
ff(outputStore.modalModel.results.summary.chi_squared), | ||
], | ||
]; | ||
} else { | ||
const p_value = outputStore.modalModel.results.tests.p_values[3]; | ||
data = [ | ||
["BMD", ff(outputStore.modalModel.results.bmd)], | ||
["BMDL", ff(outputStore.modalModel.results.bmdl)], | ||
["BMDU", ff(outputStore.modalModel.results.bmdu)], | ||
["AIC", ff(outputStore.modalModel.results.fit.aic)], | ||
["-2* Log(Likelihood Ratio)", ff(outputStore.modalModel.results.fit.loglikelihood)], | ||
[ | ||
<span key={0}> | ||
<i>P</i>-value | ||
</span>, | ||
fractionalFormatter(p_value), | ||
], | ||
["Model d.f.", ff(outputStore.modalModel.results.tests.dfs[3])], | ||
]; | ||
} | ||
|
||
return <TwoColumnTable id="info-table" data={data} label="Modeling Summary" />; | ||
} | ||
} | ||
Summary.propTypes = { | ||
outputStore: PropTypes.object, | ||
}; | ||
export default Summary; |
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
frontend/src/components/Output/NestedDichotomous/Summary.js
This file was deleted.
Oops, something went wrong.