Description Usage Arguments Value References See Also Examples
View source: R/Sample_Size_for_EV.R
Precise estimate of CITL (calibration-in-the-large)
1 |
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 |
A html file contains minimum sample size
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.
ss_R2val, ss_cal_slope , ss_res_var , ss_sens , ss_spec
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.