Learn R Programming

robin (version 1.0.0)

robinFDATest: robinFDATest

Description

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

Usage

robinFDATest(
  graph,
  model1,
  model2,
  measure = c("vi", "nmi", "split.join", "adjusted.rand"),
  legend = c("real data", "null model")
)

Arguments

graph

The output of prepGraph.

model1

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

model2

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

measure

The stability measure "vi", "nmi", "split.join", "adjusted.rand".

legend

The legend for the graph. The default is c("real data", "null model").

Value

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

Examples

Run this code
# NOT RUN {
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, measure="vi")
# }

Run the code above in your browser using DataLab