mnda_distance_test_isn {mnda} | R Documentation |
Test the embedding distances of local neighbors change between the two conditions for ISNs.
Description
Test the embedding distances of local neighbors change between the two conditions for ISNs.
Usage
mnda_distance_test_isn(
Distance,
y,
stat.test = "wilcox.test",
p.adjust.method = "none"
)
Arguments
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 |
Details
The adjusted p-values for each node is calculated based on their distance variation between the two conditions.
Value
The adjusted pvalues for each node.
Examples
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 = mnda_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 = mnda_node_distance(embeddingSpaceList)
Result = mnda_distance_test_isn(Dist, y = c(1,2))
[Package mnda version 1.0.9 Index]