This function calculated the probability that the treatment effect in endpoint one (or endpoint x) is larger than in endpoint two (or endpoint y), i.e. P(x>y) = P(x-y>0)
pw(n2, hr1, hr2, id1, id2, fixed, rho)
The output of the function pw()
is the probability that endpoint one has a better result than endpoint two
total sample size for phase II; must be even number
assumed true treatment effect on HR scale for endpoint OS
assumed true treatment effect on HR scale for endpoint PFS
amount of information for hr1
in terms of number of events
amount of information for hr2
in terms of number of events
choose if true treatment effects are fixed or random
correlation between the two endpoints
Z=X-Y is normally distributed with expectation mu_x - mu_y and variance sigma_x + sigma_y- 2 rho sdx sdy