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

Execution time is very long or is impossible #9

Open
DanChaltiel opened this issue Aug 1, 2024 · 0 comments
Open

Execution time is very long or is impossible #9

DanChaltiel opened this issue Aug 1, 2024 · 0 comments

Comments

@DanChaltiel
Copy link

DanChaltiel commented Aug 1, 2024

Hi,

Thank you for this very nice package.

The following code takes a rather long time:

createGrid(p0 = 0.15, p1 = 0.3, alpha = 0.05, beta = 0.2) %>%
  augmentGrid() %>%
  obtainDesign(mander = FALSE)

Moreover, with p0=0.2, it ends with the following error:

Error in `expand_grid()`:
! Long vectors are not yet supported. Expansion results in an allocation larger than 2^31-1 elements. Attempted allocation size was 30921809484.

Note that it is instantaneous to get the results of both cases online using http://cancer.unc.edu/biostatistics/program/ivanova/SimonsTwoStageDesign.aspx.

This other package also gives the same result (and is much faster):

remotes::install_github("IDDI-BE/PhIIdesign")
PhIIdesign::simon2stage(p0 = 0.15, pa = 0.3, alpha = 0.05, beta = 0.2, N_min=1, N_max=100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant