cvotu: Cross validation of OTUs

Description Usage Arguments Value

View source: R/cvotu.R

Description

Implement cross valildation and record the validation error for each iteration and lambda

Usage

1
cvotu(da, ..., lambda = seq(0.001, 0.3, by = 0.01), nfold = 6, esti.mode = 0)

Arguments

da,

dataset

...,

mean values by esti.mode=2, available only when esti.mode=2

lambda,

the range of lambda for cross validation, default value of seq(0.001,0.3,by=0.01)

nfold,

number of folds for cross validation, default value of 6

esti.mode,

digits for covariance estimating method, 0 for Kaul's method, 1/2/3 for Jun Li's 1st/2nd/3rd method

Value

the validation error for each iteration and lambda


yewei369/clotu documentation built on Dec. 23, 2021, 7:19 p.m.