Skip to content

Commit 74aa4d1

Browse files
author
schuemie
committed
Fixing error in previous commit
1 parent 3560f86 commit 74aa4d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/RunAnalyses.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -1702,10 +1702,10 @@ summarizeResults <- function(referenceTable, outputFolder, mainFileName, interac
17021702
if (is.null(coefficient)) {
17031703
p <- NA
17041704
} else {
1705-
p <- EmpiricalCalibration::computeTraditionalP(logRr = estimate$logRr,
1706-
seLogRr = estimate$seLogRr)
1707-
oneSidedP <- EmpiricalCalibration::computeTraditionalP(logRr = estimate$logRr,
1708-
seLogRr = estimate$seLogRr,
1705+
p <- EmpiricalCalibration::computeTraditionalP(logRr = coefficient,
1706+
seLogRr = outcomeModel$outcomeModelTreatmentEstimate$seLogRr)
1707+
oneSidedP <- EmpiricalCalibration::computeTraditionalP(logRr = coefficient,
1708+
seLogRr = outcomeModel$outcomeModelTreatmentEstimate$seLogRr,
17091709
twoSided = FALSE,
17101710
upper = TRUE)
17111711
}

0 commit comments

Comments
 (0)