Description Usage Arguments Value Author(s) References Examples
This function when given the parameters of a study to measure an ICC calculates what is the largest p0 that can be tested for at the specified power, alpha and number of tails.
1 | calculateAchievablep0(p,k,alpha,tails,power,N)
|
p |
The intraclass correlation coefficient obtained in the study. No default. |
k |
The number of ratings of each subject. If missing default is 2. |
alpha |
The desired alpha for hypothesis testing. If missing default is 0.05. |
tails |
The number of trails for hypothesis test. If missing default is 2. |
power |
The desired power of the hypothesis test. If missing default is 0.80. |
N |
The number of subjects in the study. No default |
Returns a list with the following items:
resultFrame |
A data frame consisting of columns p0,N,p,k,alpha,tails and power. |
Alasdair Rathbone, Saurabh Shaw, Dinesh Kumbhare
Maintainer: Alasdair Rathbone <alasdair.rathbone@gmail.com>
Zou, G. Y. (2012). Sample size formulas for estimating intraclass correlation coefficients with precision and assurance. Statistics in medicine, 31(29), 3972-3981.
1 2 | ##Calculate achieveable p0 for a given study with p=0.80,k=2,alpha=0.05,tails=2,power=0.80,N=30
calculateAchievablep0(p=0.80,k=2,alpha=0.05,tails=2,power=0.80,N=30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.