simcamres: Results of SIMCA multiclass classification

View source: R/simcamres.R

simcamresR Documentation

Results of SIMCA multiclass classification

Description

simcamres is used to store results for SIMCA multiclass classification.

Usage

simcamres(cres, pred.res)

Arguments

cres

results of classification (class classres).

pred.res

list with prediction results from each model (pcares objects)

Details

Class simcamres inherits all properties and methods of class classres, plus store values necessary to visualise prediction decisions (e.g. Cooman's plot or Residuals plot).

In cotrast to simcares here only values for optimal (selected) number of components in each individual SIMCA models are presented.

There is no need to create a simcamres object manually, it is created automatically when make a SIMCAM model (see simcam) or apply the model to a new data (see predict.simcam). The object can be used to show summary and plots for the results.

Value

Returns an object (list) of class simcamres with the same fields as classres plus extra fields for Q and T2 values and limits:

c.pred

predicted class values.

c.ref

reference (true) class values if provided.

T2

matrix with T2 values for each object and class.

Q

matrix with Q values for each object and class.

T2lim

vector with T2 statistical limits for each class.

Qlim

vector with Q statistical limits for each class.

The following fields are available only if reference values were provided.

tp

number of true positives.

fp

nmber of false positives.

fn

number of false negatives.

specificity

specificity of predictions.

sensitivity

sensitivity of predictions.

See Also

Methods for simcamres objects:

print.simcamres shows information about the object.
summary.simcamres shows statistics for results of classification.
plotCooman.simcamres makes Cooman's plot.

Methods, inherited from classres class:

showPredictions.classres show table with predicted values.
plotPredictions.classres makes plot with predicted values.

Check also simcam.

Examples

## see examples for simcam method.


mdatools documentation built on Aug. 13, 2023, 1:06 a.m.