ssnma {OssaNMA} | R Documentation |
Calculate the optimal sample sizes for a new two-arm trial when analyze it with the existing network
Description
This function calculates the optimal sample size for each treatment group to achieve a pre-specified power when planning a new two-arm trial with binary outcome.
Usage
ssnma(
p1,
p2,
enma_sigma = NULL,
power.level,
sig.level = 0.05,
method = "with",
allocation = "uneven"
)
Arguments
p1 |
Risk of treatment 1 |
p2 |
Risk of treatment 2 |
enma_sigma |
Standard error of the estimated effect size (log odds ratio) between treatment 1 and treatment 2 from the existing network |
power.level |
Power of test we want to obtain |
sig.level |
Significance level, the default value is 0.05 |
method |
a character string specifying the method of analyzing the new trial, must be one of 'with' (default) or 'without' |
allocation |
a character string specifying the type of sample size allocation between two groups, must be one of 'uneven' (default) or 'even'. |
Value
A list with the following components:
sample_size |
Sample size for each treatment group. |
power |
Power of the test. |
Examples
ssnma(p1 = 0.2, p2 = 0.3, enma_sigma = 0.4, power = 0.8)
[Package OssaNMA version 0.1.2 Index]