mml_with_parents: Auxiliary function to mml_cpt()

Description Usage Arguments

View source: R/mml_with_parents.R

Description

This function calculates the mml score of a target node given its parents. There has to be at least one parent for the target. Natural log is used.

Usage

1
2
mml_with_parents(indexListPerNodePerValue, arities, sampleSize,
  parentsIndices, targetIndex, alpha, statingPara = FALSE)

Arguments

indexListPerNodePerValue

indexListPerNodePerValue

arities

arities

sampleSize

sampleSize

parentsIndices

parentsIndices

targetIndex

targetIndex

alpha

A vector of concentration parameters for a Dirichlet distribution. Range is from zeor to positive infinity, length is equal to the arity of the target variable.

statingPara

If TRUE MML estimate of the parameters are also stated with extra 0.5log(pi*e/6) per parameter, otherwise 0.


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