ss_R2val: 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 R2val

Usage

1
ss_R2val(R2val, width, alpha)

Arguments

R2val

Assumed coefficient of determination

width

Expected width of confidence interval

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_citl, ss_cal_slope , ss_res_var , ss_sens , ss_spec

Examples

1
2
3
4
5
6
7
#Eg.To target a 95% confidence interval for R2val that has a
#narrow width of about 0.1 i.e SE of R2val will be 0.0255 and
#assuming R2val is 0.5.
ss_R2val( R2val= 0.5,width=0.1,alpha=0.05 )

#for different combinations of parameters
ss_R2val( R2val= c(0.6,0.9),width=c( 0.1),alpha=c( 0.01,0.05) )

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