Calculate the log-likelihood of a sample with respect to a given catNetwork object
Usage
cnLoglik(object, data, bysample=FALSE)
Arguments
object
a catNetwork object
data
a data matrix given in the column-sample format, or a data.frame in the row-sample format
bysample
a logical
Value
A numeric value
Details
If bysample is set to TRUE, the function output is a vector of length the sample size with values the log-likelihood of each individual sample instance. Otherwise, the total sum of the log-likelihood of the sample instances is reported.