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

Efficacy boundary (treatment effect scale) for two-sided tests not shown in summary() since version 4.0.0 #44

Closed
wyf88 opened this issue Jul 9, 2024 · 0 comments · Fixed by #45
Assignees
Labels
bug Something isn't working

Comments

@wyf88
Copy link

wyf88 commented Jul 9, 2024

I have noticed a change in the output of the summary function for the sample size/power calculation in version 4.0.0 compared with 3.5.1, where the efficacy boundary (treatment effect scale) for two-sided tests is not shown any more. The output for one-sided tests is not affected. I was wondering if this change is intended or not, as it was helpful to show the efficacy boundary for the study design.

rpact 4.0.0:

summary(sampleSizeResult <- getSampleSizeMeans(
    alternative = 10, stDev = 24, sided = 2,
    alpha = 0.05, beta = 0.2
))
Sample size calculation for a continuous endpoint

Fixed sample analysis, significance level 5% (two-sided).
The results were calculated for a two-sample t-test, H0: mu(1) - mu(2) = 0, 
H1: effect = 10, standard deviation = 24, power 80%.

Stage                               Fixed 
Efficacy boundary (z-value scale)   1.960 
Number of subjects                  182.8 
Two-sided local significance level 0.0500 
summary(sampleSizeResult <- getSampleSizeMeans(
    alternative = 10, stDev = 24, sided = 1,
    alpha = 0.025, beta = 0.2
))
Sample size calculation for a continuous endpoint

Fixed sample analysis, significance level 2.5% (one-sided).
The results were calculated for a two-sample t-test, H0: mu(1) - mu(2) = 0, 
H1: effect = 10, standard deviation = 24, power 80%.

Stage                               Fixed 
Efficacy boundary (z-value scale)   1.960 
Number of subjects                  182.8 
One-sided local significance level 0.0250 
Efficacy boundary (t)               7.006 

Legend:
  (t): treatment effect scale

rpact 3.5.1:

summary(sampleSizeResult <- getSampleSizeMeans(
    alternative = 10, stDev = 24, sided = 2,
    alpha = 0.05, beta = 0.2
))
Sample size calculation for a continuous endpoint

Fixed sample analysis, significance level 5% (two-sided).
The results were calculated for a two-sample t-test, H0: mu(1) - mu(2) = 0, 
H1: effect = 10, standard deviation = 24, power 80%.

Stage                               Fixed 
Efficacy boundary (z-value scale)   1.960 
Number of subjects                  182.8 
Two-sided local significance level 0.0500 
Lower efficacy boundary (t)        -7.006 
Upper efficacy boundary (t)         7.006 

Legend:
  (t): treatment effect scale
summary(sampleSizeResult <- getSampleSizeMeans(
    alternative = 10, stDev = 24, sided = 1,
    alpha = 0.025, beta = 0.2
))
Sample size calculation for a continuous endpoint

Fixed sample analysis, significance level 2.5% (one-sided).
The results were calculated for a two-sample t-test, H0: mu(1) - mu(2) = 0, 
H1: effect = 10, standard deviation = 24, power 80%.

Stage                               Fixed 
Efficacy boundary (z-value scale)   1.960 
Number of subjects                  182.8 
One-sided local significance level 0.0250 
Efficacy boundary (t)               7.006 

Legend:
  (t): treatment effect scale

Thank you!

@fpahlke fpahlke self-assigned this Jul 16, 2024
@fpahlke fpahlke added the bug Something isn't working label Jul 16, 2024
fpahlke added a commit that referenced this issue Jul 18, 2024
@fpahlke fpahlke linked a pull request Jul 18, 2024 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.

2 participants