Construct a single node of a tree
Arguments
- node
a list with named elements
pathandprediction. See details for more.- calc_mode
character, takes values
""and"calc_mode".The
nodelist should contain the two listspathandprediction.The
pathelement has the following structure:This list can contain 0 or more elemements. The elements but each be of the following format:
typecharacter, must be"conditional","set", or"all".opcharacter. iftype == "conditional"must be"more","more-equal","less", or"less-equal". iftype == "set"must be"in"onnot-in.colcharacter.valiftype == "conditional"andvalsiftype == "set". Can be character or numeric.
The
predictionlist has the following structure:It can either be a singular value or a list. If it is a list it will have the following 4 named elements
col,val,op, andis_intercept.colcharacter, name of columnvalval, numeric of characteropcharacter, known values are"none"and"multiply"."none"is used thenis_intercept == 1.is_interceptinteger, takes values0and1.`
@keywords internal
