logScoreNormalPrepare: Internal functions.

Description Usage Arguments Details Value See Also

View source: R/score-normal.R

Description

Convert a data frame to the appropriate format for the fast/incremental logScoreNormal functions, and return as part of the logScoreParameters list.

Usage

1
2
  logScoreNormalPrepare(data, logScoreParameters,
    checkInput = T)

Arguments

data

A data.frame, with columns being factors giving the values of each random variable.

logScoreParameters

A list with the following components:

data

A matrix with columns giving the values of each random variable.

nl

A numeric vector of length nNodes(currentBN), specifying the number of levels that each random variable takes.

checkInput

A logical of length 1, specifying whether to check the inputs to the function.

Details

In particular, the data is converted to a matrix, and the factor levels taken integer values from 0, 1, .... ie not on 1, 2, 3.

Value

A list with the contents of logScoreParameters, with the following components added or altered:

data

A matrix with columns giving the value of each random variable.

nl

A numeric vector of length ncol(data), specifying the number of levels that each random variable takes.

See Also

logScoreNormal


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.