x1mean: mean of responses for patients choosing treatment 1. If study is stratified, should be vector with length equal to the number of strata.
x1var: variance of responses for patients choosing treatment 1. If study is stratified, should be vector with length equal to the number of strata.
m1: number of patients choosing treatment 1. If study is stratified, should be vector with length equal to the number of strata.
x2mean: mean of responses for patients choosing treatment 2. If study is stratified, should be vector with length equal to the number of strata.
x2var: variance of responses for patients choosing treatment 2. If study is stratified, should be vector with length equal to the number of strata.
m2: number of patients choosing treatment 2. If study is stratified, should be vector with length equal to the number of strata.
y1mean: mean of responses for patients randomized to treatment 1. If study is stratified, should be vector with length equal to the number of strata.
y1var: variance of responses for patients randomized to treatment 1. If study is stratified, should be vector with length equal to the number of strata.
n1: number of patients randomized to treatment 1. If study is stratified, should be vector with length equal to the number of strata.
y2mean: mean of responses for patients randomized to treatment 2. If study is stratified, should be vector with length equal to the number of strata.
y2var: variance of responses for patients randomized to treatment 2. If study is stratified, should be vector with length equal to the number of strata.
n2: number of patients randomized to treatment 2. If study is stratified, should be vector with length equal to the number of strata.
xi: a numeric vector of the proportion of patients in each stratum. Length of vector should equal the number of strata in the study and sum of vector should be 1. All vector elements should be numeric values between 0 and 1. Default is 1 (i.e. unstratified design).
nstrata: number of strata. Default is 1 (i.e. unstratified design).
alpha: Type I error rate, used to determine confidence interval level for the effect estimates. Default is 0.05 (i.e. 95% confidence interval)