Learn R Programming

RJafroc (version 1.3.2)

SsPowerTable: Generate a power table

Description

Generate combinations of numbers of readers J and numbers of cases K for desired power and specified generalization(s)

Usage

SsPowerTable(
  dataset,
  FOM,
  effectSize = NULL,
  alpha = 0.05,
  desiredPower = 0.8,
  method = "DBMH",
  option = "ALL"
)

Arguments

dataset

The pilot ROC dataset to be used to extrapolate to the pivotal study.

FOM

The figure of merit.

effectSize

The effect size to be used in the pivotal study, default value is NULL. See Details.

alpha

The The size of the test, default is 0.05.

desiredPower

The desired statistical power, default is 0.8.

method

Analysis method, "DBMH" or "ORH", the default is "DBMH".

option

Desired generalization, "RRRC", "FRRC", "RRFC" or "ALL" (the default).

Value

A list containing up to 3 (depending on options) dataframes. Each dataframe contains 3 arrays:

numReaders

The numbers of readers in the pivotal study.

numCases

The numbers of cases in the pivotal study.

power

The estimated statistical powers.

Details

The default effectSize uses the observed effect size in the pilot study. A numeric value over-rides the default value.

Examples

Run this code
# NOT RUN {
## Examples with CPU or elapsed time > 5s
##              user    system elapsed
## SsPowerTable 20.033  0.037  20.077    

## Example of sample size calculation with DBM method
SsPowerTable(dataset02, FOM = "Wilcoxon", method = "DBMH")

## Example of sample size calculation with OR method
SsPowerTable(dataset02, FOM = "Wilcoxon", method = "ORH")
# }
# NOT RUN {
 
# }

Run the code above in your browser using DataLab