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

Bugs in fixed_design when applying the AHR method to calculate the power #143

Closed
LittleBeannie opened this issue Jan 17, 2023 · 0 comments · Fixed by #144
Closed

Bugs in fixed_design when applying the AHR method to calculate the power #143

LittleBeannie opened this issue Jan 17, 2023 · 0 comments · Fixed by #144
Assignees
Labels
bug Something isn't working

Comments

@LittleBeannie
Copy link
Collaborator

LittleBeannie commented Jan 17, 2023

The following code gives errors.

fixed_design(method = "ahr", 
             enroll_rate = tibble::tibble(stratum = "All",
                                          duration = c(2, 2, 10),
                                          rate = c(30, 60, 90)), 
             fail_rate = tibble::tibble(stratum = "All",
                                        duration = c(3, 100),
                                        fail_rate = log(2) / c(9, 18),
                                        hr = c(.9, .6),
                                        dropout_rate = rep(.001, 2)), 
             ratio = 1, 
             event = 100,
             alpha = 0.025, # 1-sided Type I error
             power = NULL, # Power will be computed
             study_duration = NULL, # study duration will be computed
             event = 300
)
@LittleBeannie LittleBeannie self-assigned this Jan 17, 2023
@LittleBeannie LittleBeannie added the bug Something isn't working label Jan 17, 2023
@LittleBeannie LittleBeannie linked a pull request Jan 17, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant