Learn R Programming

OmicsMarkeR (version 1.4.2)

predicting: Model Group Prediction

Description

This function evaluates a single fitted model and returns the predicted group memberships.

Usage

predicting(method, modelFit, orig.data, indicies, newdata, param = NULL)

Arguments

method
String of the model to be evaluated
modelFit
The fitted model being evaluated
orig.data
The orginal data before subsetting training sets. Required to have the 'observed' group membership
indicies
The indicies for the training subsets
newdata
The testing data to predict group membership
param
The parameters being fit to the model (Determined by model optimization).

Value

Returns a list of predicted group membership