Description Usage Arguments Value Author(s) References Examples
Calculate the power for testing delta=0.
1 2 3 4 5 6 7 8 9 10 11 12  powerCal(
nSubj,
mu1,
triangle,
rho,
rho11,
rho22,
rho12,
p11,
p10,
p01,
alpha = 0.05)

nSubj 
integer. number of subjects to be generated. Assume each subject has two observations. 
mu1 
mu_1=H(Y)H(Y_c) is the difference between probit transformation H(Y) and probitshift alternative H(Y_c), where Y is the prediction score of a randomly selected progressing subunit, and Y_c is the counterfactual random variable obtained if each subunit that had progressed actually had not progressed. 
triangle 
the difference of the expected value the the extended MannWhitney U statistics between two prediction rules, i.e., triangle = eta^{(1)}_c  eta^{(2)}_c 
rho 
rho=corr(H(Z_{ij}), H(Z_{k ell})) , where H=Phi^{1} is the probit transformation. 
rho11 
rho_{11}=corr(H_{ij}^{(1)}, H_{i ell}^{(1)}) , where H=Phi^{1} is the probit transformation. 
rho22 
rho_{22}=corr(H_{ij}^{(2)}, H_{i ell}^{(2)}) , where H=Phi^{1} is the probit transformation. 
rho12 
rho_{12}=corr(H_{ij}^{(1)}, H_{i ell}^{(2)}) , where H=Phi^{1} is the probit transformation. 
p11 
p_{11}=Pr(delta_{i1}=1 & delta_{i2}=1) , where delta_{ij}=1 if the jth subunit of the ith cluster has progressed. 
p10 
p_{11}=Pr(delta_{i1}=1 & delta_{i2}=0) , where delta_{ij}=1 if the jth subunit of the ith cluster has progressed. 
p01 
p_{11}=Pr(delta_{i1}=0 & delta_{i2}=1) , where delta_{ij}=1 if the jth subunit of the ith cluster has progressed. 
alpha 
type I error rate 
the power
Bernard Rosner <stbar@channing.harvard.edu>, Weiliang Qiu <Weiliang.Qiu@gmail.com>, Meiling Ting Lee <MLTLEE@umd.edu>
Rosner B, Qiu W, and Lee MLT. Assessing Discrimination of Risk Prediction Rules in a Clustered Data Setting. Lifetime Data Anal. 2013 Apr; 19(2): 242256.
1 2 3 4 5 6 7 8 9 10 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.