sub-sub-.cia_post_chains: Index a cia_post_chains object.

[[.cia_post_chainsR Documentation

Index a cia_post_chains object.

Description

Index a cia_post_chains object.

Usage

## S3 method for class 'cia_post_chains'
x[[i, ...]]

Arguments

x

A cia_post_chains object.

i

An index to get the cia_post_chain.

...

ellipsis for extra indexing parameters.

Value

chain A cia_post_chains object.

Examples

data <- bnlearn::learning.test

dag <- UniformlySampleDAG(colnames(data))
partitioned_nodes <- DAGtoPartition(dag)

scorer <- CreateScorer(
  scorer = BNLearnScorer, 
  data = data
  )

results <- SampleChains(10, partitioned_nodes, PartitionMCMC(), scorer)
dag_chains <- PartitiontoDAG(results, scorer)

pedge_sample <- SampleEdgeProbabilities(dag_chains)
head(pedge_sample[[1]])


cia documentation built on April 4, 2025, 5:23 a.m.