check_criterion: Check chosen criterion

View source: R/criterions.R

check_criterionR Documentation

Check chosen criterion

Description

Checks if the criterion is viable or matches it to the list of implemented criterions.

Usage

check_criterion(input_criterion, criterion_names = c("ig", "kl", "cs"))

Arguments

input_criterion

character string, criterion from input.

criterion_names

list of implemented criterions, always in lowercase.

Value

a list of three:

  • criterion name,

  • its function,

  • nice name for outputs.

See Also

Calculate the value of criterion: calc_criterion.


michbur/biogram documentation built on Feb. 4, 2024, 6:38 p.m.