ss_citl: 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

Precise estimate of CITL (calibration-in-the-large)

Usage

1
ss_citl(varY, R2, width, alpha)

Arguments

varY

Variance of the observed Yi

R2

Expected coefficient of determination (R2) of CITL

width

Expected Width of confidence interval of CITL

alpha

Level of Significance

Value

A html file contains minimum sample size

References

Archer L, Snell KIE, Ensor J, Hudda MT, Collins GS, Riley RD. Minimum sample size for external validation of a clinical prediction model with a continuous outcome. Stat Med. 2020;40:133-46.

See Also

ss_R2val, ss_cal_slope , ss_res_var , ss_sens , ss_spec

Examples

1
2
3
4
5
6
7
#Eg. To target SE of CITL model of 2.55 (width = 10)at 95%
#confidence interval , Assuming R2 CITL = R2val = 0.5 and
# variance of the observed Yi is 400
ss_citl( R2= 0.5,width = 10,alpha = 0.05, varY = 400)

#for different combinations of parameters
ss_citl( R2= c(0.4,0.7,0.2),width =c( 1.17),alpha = 0.05, varY = 400)

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