View source: R/multiLayerNet_functions.R
plexi_distance_test_isn | R Documentation |
Test the embedding distances of local neighbors change between the two conditions for ISNs.
plexi_distance_test_isn(
distance,
y,
stat.test = "wilcox.test",
p.adjust.method = "none"
)
distance |
a distance list obtained by the |
y |
vector with the length equal to the number of individuals. |
stat.test |
statistical test used to detect the nodes |
p.adjust.method |
method for adjusting p-value (including methods on |
The adjusted p-values for each node is calculated based on their distance variation between the two conditions.
The adjusted pvalues for each node.
ISN1 = network_gen(n.nodes = 50, n.var.nodes = 5, n.var.nei = 40, noise.sd = .01)
ISN2 = network_gen(n.nodes = 50, n.var.nodes = 5, n.var.nei = 40, noise.sd = .01)
graph_data = cbind(ISN1[["data_graph"]], ISN1[["data_graph"]][,3:4])
embeddingSpaceList = plexi_embedding(graph.data=graph_data, outcome=c(1,2,1,2),
indv.index=c(1,1,2,2), train.rep=2, random.walk=FALSE)
Dist = plexi_node_distance(embeddingSpaceList)
Result = plexi_distance_test_isn(Dist, y = c(1,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.