In the CohortMethod power tab, the MDRR is shown. This is computed on the fly based on the counts. However, the problem with this is that the counts might be masked because they were below the minCellCount. The current code simply takes the absolute value of the count, meaning in the case of masking it assumes the value of minCellCount: https://github.com/OHDSI/OhdsiShinyModules/blob/main/R/estimation-cohort-method-power.R#L354
This can lead to different MDRR numbers between the Diagnostics tab and the power tab.
Could we just pull the pre-computed MDRR from the cm_diagnostics_summary table instead?
In the CohortMethod power tab, the MDRR is shown. This is computed on the fly based on the counts. However, the problem with this is that the counts might be masked because they were below the minCellCount. The current code simply takes the absolute value of the count, meaning in the case of masking it assumes the value of minCellCount: https://github.com/OHDSI/OhdsiShinyModules/blob/main/R/estimation-cohort-method-power.R#L354
This can lead to different MDRR numbers between the Diagnostics tab and the power tab.
Could we just pull the pre-computed MDRR from the
cm_diagnostics_summary
table instead?