ss_res_var: 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 estimates of residual variances (small multiplicative margin of error (MMOE) around the true value)

Usage

1
ss_res_var(alpha, max_MOE)

Arguments

alpha

Level of Significance

max_MOE

Multiplicative margin of error

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_R2val , ss_sens , ss_spec

Examples

1
2
3
4
5
6
#Eg.Sample size for margin of error of within 10% (1.0 <=MMOE <=1.1)
# of the true value at 95% confidence level.
ss_res_var( max_MOE=1.1, alpha=0.05)

#for different combinations of parameters
ss_res_var( max_MOE=c(1.1,1.2,1.3), alpha=c(0.05,0.01))

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