cnNodeLoglik: Node Log-likelihood

Description Usage Arguments Value Author(s) See Also Examples

Description

For a given data sample, the function calculates the log-likelihood of a node with respect to a specified parent set.

Usage

1
cnNodeLoglik(object, node, data, perturbations=NULL)

Arguments

object

a catNetwork object

node

an integer or a list of integers, node indices in the data

data

a matrix or data.frame of categories

perturbations

an optional perturbation matrix or data.frame

Value

a numeric value

Author(s)

N. Balov

See Also

cnLoglik

Examples

1
2
3
4
  library(catnet)
  cnet <- cnRandomCatnet(numnodes=10, maxParents=3, numCategories=2)
  psamples <- cnSamples(object=cnet, numsamples=100)
  cnNodeLoglik(cnet, node=5, data=psamples)

catnet documentation built on May 30, 2017, 3:39 a.m.

Search within the catnet package
Search all R packages, documentation and source code