evaluate.DRWPClassGM: Evaluate predictions from a "DRWPClassGM" object.

Description Usage Arguments Value See Also Examples

Description

This functions evaluates the classification performance of a fitted "DRWPClassGM" object.

Usage

1
evaluate.DRWPClassGM(object, newx, newy.class1, newy.class2)

Arguments

object

Fitted "DRWPClassGM" model object.

newx

A matrix with variables to predict.

newy.class1

a integer vector comprising the indexes of class 1 samples in newx.

newy.class2

a integer vector comprising the indexes of class 2 samples in newx.

Value

The classification performance of the predictions.

See Also

predict.DRWPClassGM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
	data(GProf8511)
	data(GProf3325)
	data(MProf)
	data(pathSet)
	data(dGMGraph)
	fit <- fit.DRWPClassGM(xG=GProf8511$mRNA_matrix, yG.class1=GProf8511$normal, 
						   yG.class2=GProf8511$PCA, xM=MProf$Meta_matrix, yM.class1=MProf$normal, 
						   yM.class2=MProf$PCA,	DEBUG=TRUE, pathSet=pathSet, globalGraph=dGMGraph, 
						   testStatistic="t-test", classifier = "Logistic", normalize = TRUE, 
						   nFolds = 5, numTops=50, iter = 1, Gamma=0.7, Alpha = 0.5)
	evaluate.DRWPClassGM(object=fit, newx=GProf3325$mRNA_matrix, newy.class1=GProf3325$normal, 
						 newy.class2=GProf3325$PCA)

cuihaibo1/drwPSurv_1.0.tar documentation built on May 14, 2019, 12:51 p.m.