parse_scones_settings {martini}R Documentation

Parse scones.cv settings.

Description

Creates a list composed by all scones.cv settings, with the values provided by the user, or the default ones if none is provided.

Usage

parse_scones_settings(
  score = "chi2",
  criterion = "consistency",
  etas = numeric(),
  lambdas = numeric(),
  c = numeric()
)

Arguments

score

Association score to measure association between genotype and phenotype. Possible values: chi2 (default), glm.

criterion

String with the function to measure the quality of a split. Possible values: consistency (default), bic, aic, aicc.

etas

Numeric vector with the etas to explore in the grid search. If ommited, it's automatically created based on the association scores.

lambdas

Numeric vector with the lambdas to explore in the grid search. If ommited, it's automatically created based on the association scores.

c

Numeric vector with the association scores of the SNPs. Specify it to automatically an appropriate range of etas and lambas.

Value

A list of evo settings.

Examples

martini:::parse_scones_settings(etas = c(1,2,3), lambdas = c(4,5,6))
martini:::parse_scones_settings(c = c(1,10,100), score = "glm")

[Package martini version 1.8.0 Index]