ss_spec: Minimum sample size for external validation of a clinical...

Description Usage Arguments Value References See Also Examples

View source: R/Sample_Size_for_EV.R

Description

Sample size required for a given specificity

Usage

1
ss_spec(alpha, sp, d, prev)

Arguments

alpha

Level of Significance

sp

Expected specificity

d

Maximum margin of error

prev

Population level prevalence

Value

A html file contains minimum sample size

References

Arenas-Cavalli JT, Abarca I, Rojas-Contreras M, Bernuy F, Donoso R. Clinical validation of an artificial intelligence-based diabetic retinopathy screening tool for a national health system. Eye (Lond). 2021 Jan 11. doi: 10.1038/s41433-020-01366-0. Epub ahead of print. Erratum in: Eye (Lond). 2021 Jul 23;: PMID: 33432168.

See Also

ss_citl, ss_cal_slope , ss_res_var , ss_R2val , ss_sens

Examples

1
2
3
4
5
6
7
#Eg .To target 50% specificity at 95% confidence level,
# maximum margin of error 5% for a precision of 95% and
# assuming 30% of the population with particular disease.
ss_spec( alpha=0.05, sp= 0.5, d=0.05,prev=0.3)

#for different combinations of parameters
ss_spec( alpha=c(0.05), sp=c(0.8 , 0.9), d=c(0.05 , 0.1 ),prev=0.3)

Ayushi-712/ssclip documentation built on Feb. 4, 2022, 11:50 p.m.