parse_scones_settings: Parse 'scones.cv' settings.

Description Usage Arguments Value Examples

View source: R/scones.R

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

1
2
3
4
5
6
7
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

1
2
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")

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