Skip to content

Commit a1b88c2

Browse files
committed
ocPostprobDist test clean
1 parent 2453cdc commit a1b88c2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/testthat/test-ocPostprob.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ test_that("two function calls that differ in parE does not give the same result.
172172
p1 = 0.2,
173173
tL = 0.8,
174174
tU = 0.8,
175-
parE = c(1, 1), # weak prior gives more PrGrayZone
175+
parE = c(1, 1), # will fail in old code that was hard coded in uniform prior
176176
sim = 100,
177177
wiggle = TRUE,
178178
nnF = c(10, 20, 30)

tests/testthat/test-ocPostprobDist.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ test_that("two function calls that differ in parE does not give the same result.
176176
deltaF = 0.2,
177177
tL = 0.6,
178178
tU = 0.6,
179-
parE = c(10, 4), # will fail in old code that was hard coded in uniform prior
179+
parE = c(10, 4),
180180
parS = c(1, 1),
181181
sim = 500,
182182
wiggle = FALSE,
@@ -189,7 +189,7 @@ test_that("two function calls that differ in parE does not give the same result.
189189
deltaF = input$deltaF,
190190
tL = input$tL,
191191
tU = input$tU,
192-
parE = c(1, 1),
192+
parE = c(1, 1), # will fail in old code that was hard coded in uniform prior
193193
parS = input$parS,
194194
sim = input$sim,
195195
wiggle = input$wiggle,
@@ -201,7 +201,7 @@ test_that("two function calls that differ in parE does not give the same result.
201201
deltaF = input$deltaF,
202202
tL = input$tL,
203203
tU = input$tU,
204-
parE = input$parE,
204+
parE = input$parE, # stronger prior gives higher PrEfficacy
205205
parS = input$parS,
206206
sim = input$sim,
207207
wiggle = input$wiggle,

tests/testthat/test-ocRctPostprobDist.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ test_that("two function calls that differ in parE does not give the same result.
256256
relativeDelta = input$relativeDelta,
257257
tL = input$tL,
258258
tU = input$tU,
259-
parE = c(1, 1), # uniform prior allowing data to speak for itself
259+
parE = c(1, 1), # will fail in old code that was hard coded in uniform prior
260260
parS = input$parS,
261261
randRatio = input$randRatio,
262262
sim = input$sim,
@@ -272,7 +272,7 @@ test_that("two function calls that differ in parE does not give the same result.
272272
relativeDelta = input$relativeDelta,
273273
tL = input$tL,
274274
tU = input$tU,
275-
parE = input$parE,
275+
parE = input$parE, # stronger prior gives higher PrEfficacy
276276
parS = input$parS,
277277
randRatio = input$randRatio,
278278
sim = input$sim,

0 commit comments

Comments
 (0)