Learn R Programming

CBnetworkMA (version 0.1.0)

clique_extract: Extract cliques from network

Description

Extracts cliques of a certain size from treatment network estimated based on a model fit using the `networkMA' function.

Usage

clique_extract(ordmat,
              type = "Highest_Post_Prob",
              clique_size = NULL,
              gamma = 0.95,
              plot_graph = FALSE)

Value

A list containing a cliques of a particular size.

Arguments

ordmat

The 'ordmat' object obtained from model fit using 'networMA' function.

type

The type of treatment network summary from which cliques are to be extracted. Options include

  • Highest_Post_Prob - Cliques are extracted from treatment network with highest posterior probability.

  • Highest_Pairwise_Post_Prob - Cliques are extracted from treatment network based on lower bound of pair-wise posterior probability of treatment effects.

clique_size

size of cliques that are to be returned.

gamma

lower-bound for pairwise treatment comparison probabilities. Only used if type = "Highest_Pairwise_Post_Prob"

plot_graph

logical - if true a plot of the network is supplied

Details

This function takes as its input the MCMC iterates of the comparison matrix that is provided as an output to the 'networkMA' function and returns cliques from the the treatment network based on a criteria associated with the posterior distribution of treatment graphs.

Examples

Run this code
# See the example supplied in the help file for 'networkMA'

Run the code above in your browser using DataLab