calculateAchieveablep0: Function to calculate largest p0 that the data are powered to...

Description Usage Arguments Value Author(s) References Examples

Description

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.

Usage

1
calculateAchievablep0(p,k,alpha,tails,power,N)

Arguments

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

Value

Returns a list with the following items:

resultFrame

A data frame consisting of columns p0,N,p,k,alpha,tails and power.

Author(s)

Alasdair Rathbone, Saurabh Shaw, Dinesh Kumbhare

Maintainer: Alasdair Rathbone <alasdair.rathbone@gmail.com>

References

Zou, G. Y. (2012). Sample size formulas for estimating intraclass correlation coefficients with precision and assurance. Statistics in medicine, 31(29), 3972-3981.

Examples

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)

Example output

[[1]]
         p0  N   p k alpha tails power
1 0.6850093 30 0.8 2  0.05     2   0.8

ICC.Sample.Size documentation built on May 2, 2019, 1:27 p.m.