clique_extract {CBnetworkMA} | R Documentation |
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)
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
|
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.
Value
A list containing a cliques of a particular size.
Examples
# See the example supplied in the help file for 'networkMA'