Learn R Programming

SurrogateRank (version 2.2)

est.power: Estimated power to detect a valid surrogate

Description

Calculates the estimated power to detect a valid surrogate given a total sample size and specified alternative

Usage

est.power(n.total, rho = 0.8, u.y.alt, delta.alt, power.want.s = 0.7)

Value

estimated power

Arguments

n.total

total sample size in study

rho

rank correlation between Y and S in group 0, default is 0.8

u.y.alt

specified alternative for u.y

delta.alt

specified alternative for u.s

power.want.s

desired power for u.s, default is 0.7

Author

Layla Parast

Examples

Run this code
est.power(n.total = 50, rho = 0.8, u.y.alt=0.9, delta.alt = 0.1)

Run the code above in your browser using DataLab