CV.TGST {TGST} | R Documentation |
Cross Validation
Description
This function allows you to compute the average of misdiagnoses rate for viral failure and the optimal risk under min-\lambda
rules
from K-fold cross-validation.
Usage
CV.TGST(Obj, lambda, K = 10)
Arguments
Obj |
An object of class TGST. |
lambda |
A user-specified weight that reflects relative loss for the two types of misdiagnoses, taking value in |
K |
Number of folds in cross validation. The default is 10. |
Value
Cross-validation results.
Examples
d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
phi = 0.1 #10% of patients taking viral load test
Obj = TGST(Z, S, phi, method="nonpar")
lambda = 0.8
CV.TGST(Obj, lambda, K=10)
[Package TGST version 1.0 Index]