Learn R Programming

RJafroc (version 0.1.1)

PowerTable: Calculate power table, different combinations, of J and K for desired power for ROC studies.

Description

Calculate required sample size for the specified dataset with given significance level, effect size and desired power

Usage

PowerTable(dataset, alpha = 0.05, effectSize = 0.05, desiredPower = 0.8, randomOption = "ALL")

Arguments

dataset
The dataset to be analyzed, see RJafroc-package.
alpha
The significantce level.
effectSize
The effect size to be used in the calculation.
desiredPower
The desired statistical power.
randomOption
The random option. It can be "ALL", "READERS" or "CASES", which indicate predictions for (1) random readers and random cases, (2) random readers only and (3) random cases only.

Value

The return is a data frame containing following three columns.
numReaders
The number of readers.
numCases
The number of cases.
power
The statistical power for the number of readers and cases combination.

Examples

Run this code
retDbm <- DBMHAnalysis(data = rocData, fom = "Wilcoxon")
effectSize <- retDbm$ciDiffTrtRRRC$Estimate
PowerTable(dataset = rocData, effectSize = effectSize)

Run the code above in your browser using DataLab