robinFDATest: robinFDATest

View source: R/ROBIN.R

robinFDATestR Documentation

robinFDATest

Description

The function implements the Interval Testing Procedure to test the difference between two curves.

Usage

robinFDATest(
  graph,
  model1,
  model2,
  legend = c("model1", "model2"),
  verbose = FALSE
)

Arguments

graph

The output of prepGraph.

model1

The Mean output of the robinRobust function (or the Mean1 output of the robinCompare function).

model2

The MeanRandom output of the robinRobust function (or the Mean2 output of the robinCompare function).

legend

The legend for the graph. The default is c("model1", "model2"). If using robinRobust is recommended c("real data", "null model"), if using robinCompare, enter the names of the community detection algorithms.

verbose

flag for verbose output (default as FALSE).

Value

Two plots: the fitted curves and the adjusted p-values. A vector of the adjusted p-values.

Examples

my_file <- system.file("example/football.gml", package="robin")
graph <- prepGraph(file=my_file, file.format="gml")
graphRandom <- random(graph=graph)
Proc <- robinRobust(graph=graph, graphRandom=graphRandom, method="louvain",
measure="vi",type="independent")
robinFDATest(graph=graph, model1=Proc$Mean, model2=Proc$MeanRandom, 
legend=c("real data", "null model"))

robin documentation built on May 17, 2022, 1:07 a.m.