predict.DRWPClassGM: Make predictions from a "DRWPClassGM" object.

Description Usage Arguments Value See Also Examples

View source: R/predict.DRWPClassGM.R

Description

This functions predicts class labels or probabilities of unknown samples from a fitted "DRWPClassGM" object.

Usage

1
predict.DRWPClassGM(object, newx, type = c("class", "probability"))

Arguments

object

Fitted "DRWPClassGM" model object.

newx

A matrix with variables to predict.

type

"class" gives the predicted classes; "probability" gives the predictions.

Value

the predictions.

See Also

fit.DRWPClassGM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	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)
	predict.DRWPClassGM(object=fit, newx=GProf3325$mRNA_matrix[,c(GProf3325$normal,GProf3325$PCA)],	
                        type = "class")

cuihaibo1/DRWPClass documentation built on May 12, 2017, 2:21 p.m.