powered by
Calculates the estimated power to detect a valid surrogate given a total sample size and specified alternative
est.power(n.total, rho = 0.8, u.y.alt, delta.alt, power.want.s = 0.7)
estimated power
total sample size in study
rank correlation between Y and S in group 0, default is 0.8
specified alternative for u.y
specified alternative for u.s
desired power for u.s, default is 0.7
Layla Parast
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