Learn R Programming

robin (version 1.1.2)

robinGPTest: robinGPTest

Description

This function implements the GP testing procedure and calculates the Bayes factor.

Usage

robinGPTest(model1, model2, verbose = FALSE)

Value

A numeric value, the Bayes factor

Arguments

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).

verbose

flag for verbose output (default as FALSE).

Examples

Run this code
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")
robinGPTest(model1=Proc$Mean,model2=Proc$MeanRandom)

Run the code above in your browser using DataLab