Learn R Programming

CausalR (version 1.4.3)

CompareHypothesis: compare hypothesis

Description

Compare the predictions from a hypothesis with the experimental data returning an matrix with columns for node ID, predictions, experimental results and the corresponding scores.

Usage

CompareHypothesis(matrixOfPredictions, matrixOfExperimentalData, ccg = NULL, sourceNode = NULL)

Arguments

matrixOfPredictions
a matrix of predictions
matrixOfExperimentalData
a matrix of experimental data
ccg
a CCG network (default=NULL)
sourceNode
A starting node (default=NULL)

Value

a matrix containing predictions, observations and scores.

Examples

Run this code
predictions <- matrix(c(1,2,3,+1,0,-1),ncol=2)
experimentalData <- matrix(c(1,2,4,+1,+1,-1),ncol=2)
ScoreHypothesis(predictions,experimentalData)
CompareHypothesis(predictions,experimentalData)

Run the code above in your browser using DataLab