CVktest {lpda}R Documentation

CVktest evaluates the error rate classification with crossvalidation

Description

CVktest evaluates the error rate classification in k samples that do not participate in the model

Usage

CVktest(data, group, scale = FALSE, pca = FALSE, PC = 2,
                    Variability = NULL, ntest = 10, R = 10, f1 = NULL, f2 = NULL)

Arguments

data

Matrix containing data. Individuals in rows and variables in columns

group

Vector with the variable group

scale

Logical indicating if data is standarised.

pca

Logical indicating if a reduction of dimension is required

PC

Number of Principal Components (PC) for PCA. By default it is 2. When the number of PC is not decided, it can be determined choosing the desired proportion of explained variability (Variability parameter) or choosing the maximum number of errors allowed in the training set (Error.max).

Variability

Parameter for Principal Components (PC) selection. This is the desired proportion of variability explained for the PC of the variables.

ntest

Number of samples to evaluate in the test-set.

R

Number of times that the error is evaluated.

f1

Vector with weights for individuals of the first group. If NULL they are equally weighted.

f2

Vector with weights for individuals of the second group. If NULL they are equally weighted.

Value

lpdaktest The prediction error rate.

Author(s)

Maria Jose Nueda, mj.nueda@ua.es

See Also

lpdaCV


[Package lpda version 1.0.1 Index]