Learn R Programming

BANFF (version 1.1)

Subnetwork.Select: Summarize the information of the sub networks selected by Network.Fast() and Network.STD()

Description

This function is to Summarize the information of the sub networks selected by Network.Fast() and Network.STD(). If the marginal distribution of a certain node is larger than 0.5, we consider this node as selected. The aim of this function is to customize the process of summarizing.

Usage

Subnetwork.Select(net,trace,node.based=NULL,infinite=TRUE,steps=5)

Arguments

net
an "n" by "n" binary (0/1) adjacent matrix of network configurations, where n=length(pvalue); same as the argument net in function Network.STD and Network.Fast
trace
the trace (results of each iteration) generated by the functions Networks.STD() and Networks.Fast().Please set as trace=total$trace where total is the output of the two functions, Networks.STD() and Networks.Fast(); you can also provide a binary 1 by "n" matrix representing the "important"(1) and "unimportant"(0) nodes
node.based
a vector representing the orders of the nodes the sub network centered
infinite
a logical variable indicating whether the expanding of sub network in a "infinite" pattern or not; infinite=TRUE if searching the "important" sub network based on one node without the limitation of maximum steps; infinite=FALSE if searching the sub network under a regulated way
steps
a number representing the maximum steps for expanding the sub network

Value

a list of values containing the the information of the sub networks selected by Network.Fast() and Network.STD()
eids
a vector of order representing the selected nodes
adj
a "m" by "m" binary adjacent matrix of the sub network configurations where n=length(eids)