Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simulate-DADesign fails #815

Open
Puzzled-Face opened this issue Apr 30, 2024 · 0 comments
Open

simulate-DADesign fails #815

Puzzled-Face opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Puzzled-Face
Copy link
Collaborator

# DADesign ----

test_that("simulate-DADesign produces consistent results", {
  opts <- McmcOptions(
    burnin = 100L,
    step = 2L,
    samples = 200L,
    rng_kind = "Mersenne-Twister",
    rng_seed = 311714
  )
  design <- .DefaultDADesign()

  actual <- simulate(
    design,
    nsim = 2,
    seed = 311714,
    mcmcOptions = opts,
    truthTox = probFunction(design@model, alpha0 = 2, alpha1 = 3),
    truthSurv = function(x, onset = 15) {
      a <- pexp(28, 1 / onset, lower.tail = FALSE)
      1 - (pexp(x, 1 / onset, lower.tail = FALSE) - a) / (1 - a)
    }
  )
  expect_snapshot(actual)
})

Fails with the following error:
image

This is therefore a failure in execution, not of expectation.

@Puzzled-Face Puzzled-Face added the bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant