Learn R Programming

cvq2 (version 1.0.2)

cvq2.setB: Small data set to demonstrate the difference between the conventional squared correlation coefficient and the predictive squared correlation coefficient while performing a cross validation.

Description

Contains a small data set with six observations, the observed value y depends on the parameter $x$. If a cross validation is applied to the data set, the resulting $q^2_{cv}$ value is much smaller than the $r^2$ value. The cross validation can be performed with various settings, like multiple runs (nRun = 2...x) with various compilations of training and data sets. Furthermore the number of test sets can be adjusted (nGroup = 1...3).

Usage

data(cvq2.setB)

Arguments

source

Generic data set, created for this purpose only.

Examples

Run this code
data(cvq2.setB)
## maybe str(cvq2.setB) ; plot(cvq2.setB) ...

Run the code above in your browser using DataLab