score_fold: Score the solutions of a k-fold

Description Usage Arguments

View source: R/scones.R

Description

Take the k-solutions for a combination of hyperparameters, and assign a score to it (the larger, the better).

Usage

1
score_fold(folds, criterion, K, gwas, covars)

Arguments

folds

k-times-d matrix, where k is the number of folds, and d the number of SNPs.

criterion

String with the method to use to score the folds.

K

Numeric vector of length equal to the number of samples. The elements are integers from 1 to # folds. Indicates which samples belong to which fold.

gwas

A SnpMatrix object with the GWAS information.

covars

A data frame with the covariates. It must contain a column 'sample' containing the sample IDs, and an additional columns for each covariate.


martini documentation built on Nov. 8, 2020, 5:39 p.m.