cross.validation: k fold n times cross validation

View source: R/Biomarker.R

cross.validationR Documentation

k fold n times cross validation

Description

k fold n times cross validation

Usage

cross.validation(
  df = NULL,
  label = NULL,
  k = 5,
  n = 100,
  scale = TRUE,
  type = "response",
  seed = 1
)

Arguments

df

data.frame. Row is sample, col is gene

label

True label

k

Folds

n

Repeat times

scale

TRUE

type

"response" or "link"

seed

Default 1

Examples

cv.res <- loonR::cross.validation(miR.df[, cf.candidates],
            group == "Cancer",
            k = 10, n = 100)

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.