Add cross-validation function

This commit is contained in:
Elias Projahn 2021-12-06 10:50:18 +01:00
parent 83fedfe9be
commit 35fb5e3884
4 changed files with 150 additions and 0 deletions

View file

@ -0,0 +1,19 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/validate.R
\name{print.geposan_validation}
\alias{print.geposan_validation}
\title{S3 method to print a validation object.}
\usage{
\method{print}{geposan_validation}(x, ...)
}
\arguments{
\item{x}{The validation to print.}
\item{...}{Other parameters.}
}
\description{
S3 method to print a validation object.
}
\seealso{
\code{\link[=validate]{validate()}}
}

22
man/validate.Rd Normal file
View file

@ -0,0 +1,22 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/validate.R
\name{validate}
\alias{validate}
\title{Perform cross-validation for the analysis.}
\usage{
validate(analysis, progress = NULL)
}
\arguments{
\item{analysis}{The analysis to validate.}
\item{progress}{An optional progress function that should accept a single
value between 0.0 and 1.0 for progress information.}
}
\value{
An object containing the mean absolute error and the mean percent
rank for the original analysis as well as the validation.
}
\description{
This function reoptimizes the analysis leaving out one of the original
reference genes at a time.
}