Learn R Programming

TrialSize (version 1.4)

Nonpara.Independ: Test for independence for nonparametric study

Description

Ho: \(P(x \le a ~and~ y \le b) = P( x \le a ) P(y \le b)\) for all a and b. Ha: not equal

Usage

Nonpara.Independ(alpha, beta, p1, p2)

Arguments

alpha

significance level

beta

power = 1-beta

p1

\(p1=P((x1-x2)(y1-y2)>0) \)

p2

\(p2=P((x1-x2)(y1-y2)(x1-x3)(y1-y3)>0)\)

References

Chow SC, Shao J, Wang H. Sample Size Calculation in Clinical Research. New York: Marcel Dekker, 2003

Examples

Run this code
# NOT RUN {
Example.14.4<-Nonpara.Independ(0.05,0.2,0.6,0.7)
Example.14.4
# 135

# }

Run the code above in your browser using DataLab