node_value_to_index: An auxiliary function to mml_nb_adaptive()

Description Usage Arguments

View source: R/node_value_to_index.R

Description

This function converts the variable values to an index in the set of all combinations. For example, the values c("A","A","A") is converted into 1, c("B","A","A") is converted to 2.

Usage

1
node_value_to_index(arities, values)

Arguments

arities

A vector of arities of the Xs and Y. It is in the order of c(xIndices, yIndex).

value

A vector of variable values in the order of c(xIndices, yIndex). The values are in numeric format.


kelvinyangli/mbmml documentation built on June 29, 2020, 3:12 a.m.