cv.twosets: Two-fold Cross-Validation
Description
To calcuate two-fold cross-validation based on a random splittingUsage
cv.twosets(data1, beta1.hat, data2, beta2.hat)
Arguments
beta1.hat
The sparse solution obtained from the first subsample
data2
The second subsample
beta2.hat
The sparse solution obtained from the second subsample
Value
- cv.valueThe two-fold cross-validation value.