sSize.norm: Sample size calculation for the standard design with...

Description Usage Arguments Value Examples

View source: R/esDesign.R

Description

The sSize.norm() is used to calculate the sample size used in the standard design with continuous endpoint.

Usage

1
sSize.norm(alpha, beta, theta, side, r, sigma2)

Arguments

alpha

The Type I error rate or the significant level

beta

beta The (1 -Power)

theta

The size of treatment effect

side

One-sided or two-sided Test

r

The ratio of sample size between the experimental and control arms

sigma2

The variance of the treatment effect

Value

A list contains the total sample size, and the sample sizes required for the experimental and control arms.

Examples

1
2
3
4
5
6
7
8
alpha <- 0.05
beta <- 0.2
theta <- 0.2
side <- 1
r <- 1
sigma2 <- 0.8
sSize.norm(alpha = alpha, beta = beta, theta = theta,
side = side, r = r, sigma2 = sigma2)

esDesign documentation built on July 13, 2021, 9:06 a.m.