Learn R Programming

pass (version 1.0)

cv.twosets: Two-fold Cross-Validation

Description

To calcuate two-fold cross-validation based on a random splitting

Usage

cv.twosets(data1, beta1.hat, data2, beta2.hat)

Arguments

data1
The first subsample
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.