Description Usage Arguments Value
View source: R/mml_fixed_str_adaptive.R
This function calculates the mml score of the target under a fixed Markov blanket model. The structure can be a general DAG. This returns the message length without stating the mml estimate of the parameters.
1 2 3 | mml_fixed_str_adaptive(data, vars, arities, sampleSize, targetIndex,
logProbTarget, cachedPXGivenT, probsMtx, str, mbIndices, cachedPXGivenY,
cachInd)
|
data |
A dataset whost variables are in numeric/integer format. Any categorical variables must be converted into numeric/integer first. |
vars |
A vector of all variables in data, in the same order as the column names of data. |
arities |
A vector of variable arities in data, in the same order as the column names of data. |
sampleSize |
The sample size. That is, the number of rows of data. |
targetIndex |
The target node's index in vars, whose Markov blanket we are interested in. |
logProbTarget |
Log of the probability of the target. |
cachedPXGivenT |
cachedPXGivenT |
probsMtx |
probsMtx |
str |
A fixed Markov blanket model stores in the bnlearn dag format. |
mbIndices |
The indices of potential Markov blanket variables. |
cachedPXGivenY |
cachedPXGivenY |
cachInd |
cachInd |
The function outputs the message length of a fixed structure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.