The goal of "ssclip" is to calculate minimum sample size for external validation of clinical prediction models to target precise estimates of predictive performance.
There are 6 functions to target different criteria of predictive performance:
You can install the development version from GitHub with:
install.packages("devtools")
devtools::install_github("Ayushi-712/ssclip")
```{r example } library(ssclip) ss_R2val( R2val= 0.5,width=0.1,alpha=0.05 )
#### Output

#### for different combinations of parameters one can pass a vector instead of single value.
ss_R2val( R2val= c(0.6,0.9),width=c( 0.1),alpha=c( 0.01,0.05) )
#### Output

### 2.Precise estimate of CITL(calibration-in-the-large)
#### For Eg. Sample size to target SE of CITL model of 2.55 (width = 10) at 95% confidence interval , R2 CITL = R2val = 0.5 and variance of the observed Yi = 400.
```{r example }
ss_citl( R2= 0.5,width = 10,alpha = 0.05, varY = 400)
ss_cal_slope( R2= 0.5,width = 0.2,alpha = 0.05, lambda = 1)
ss_res_var( max_MOE=1.1, alpha=0.05)
ss_sens( alpha=0.05, se= 0.8, d=0.05,prev=0.3)
ss_spec( alpha=0.05, sp= 0.5, d=0.05,prev=0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.