Extracts cliques of a certain size from treatment network estimated based on a model fit using the `networkMA' function.
clique_extract(ordmat,
type = "Highest_Post_Prob",
clique_size = NULL,
gamma = 0.95,
plot_graph = FALSE)A list containing a cliques of a particular size.
The 'ordmat' object obtained from model fit using 'networMA' function.
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.
size of cliques that are to be returned.
lower-bound for pairwise treatment comparison probabilities. Only used if type = "Highest_Pairwise_Post_Prob"
logical - if true a plot of the network is supplied
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.
# See the example supplied in the help file for 'networkMA'
Run the code above in your browser using DataLab