getModels: Deriving consensus graphs

View source: R/graphfns.R

getModelsR Documentation

Deriving consensus graphs

Description

When the parameter 'epmatrix' is set to TRUE, the object of class 'bnclustOmics' includes postrior probabilitis of all edges in the discovered graphs. This function can be used to derive a consensus graph representing discovered clusters according to a specified posterior probability threshold. Only edges with posteriors above the threshold will be included in the resulting consensus models.

Usage

getModels(bnres, p)

Arguments

bnres

object of class 'bnclustOmics'

p

posterior probability threshold

Value

a list of adjacency matrices corresponding to consensus graphs representing discovered clusters

Author(s)

Polina Suter

Examples

MAPmod<-dags(bnres3)
CONSmod1<-getModels(bnres3,p=0.5)
CONSmod2<-getModels(bnres3,p=0.9)
library(BiDAG)
compareDAGs(MAPmod[[1]],simdags[[1]])
compareDAGs(CONSmod1[[1]],simdags[[1]])
compareDAGs(CONSmod2[[1]],simdags[[1]])

bnClustOmics documentation built on Aug. 5, 2022, 5:11 p.m.