Learn R Programming

SPreFuGED (version 1.0)

plotSPreFu: A plotting function of the predicted performance of classification functions on a given dataset

Description

This function plots the predicted accuraces, Brier scores or Hazard ratios for each predictive function on a given dataset, as predicted by SPreFu.

Usage

plotSPreFu(restSPreFu)

Arguments

restSPreFu
an object returned by SPreFu

Value

A plot of predictive funcions and their expected performance (Accuracy, Brier score or Integrated Brier score)

References

Jong VL, Novianti PW, Roes KCB & Eijkemans MJC. Selecting a classification function for class prediction with gene expression data. Bioinformatics (2016) 32(12): 1814-1822;

See Also

estimateDataCha, fitLMEModel and SPreFu

Examples

Run this code
#Let us consider a single simulated train data as our real-life dataset
myCov<-covMat(pAll=100, lambda=2, corrDE=0.75, sigma=0.25);
myData<-generateGED(covAll=myCov, nTrain=30, nTest=10);
data<-myData[[1]]$trainData;
dataY<-myData[[1]]$trainLabels;
myDataCha<-estimateDataCha(data, dataY);
myFit<-fitLMEModel();  #Takes roughly 250 Sec
myPred<-SPreFu(myDataCha, myFit);
plotSPreFu(myPred);

Run the code above in your browser using DataLab