Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 884 Bytes

File metadata and controls

32 lines (21 loc) · 884 Bytes

findsamplesize

R-CMD-check

findsamplesize provides several functions to calculate sample sizes in diagnostic studies, as well as cluster randomized trials.

Installation

You can install the development version of findsamplesize like so:

devtools::install(file.path(getwd(),'findsamplesize') )
library(findsamplesize)

Example

This is a basic example which shows you how to calculate the sample size:

library(findsamplesize)
 sample_size_calculation(sen_spe= 0.8, alpha=0.05, power=0.8, margin=0.05, prevalence = NULL, prevalence_power = NULL, performance_characteristic = "sen") 
#> [1] 503