simcamres | R Documentation |
simcamres
is used to store results for SIMCA multiclass classification.
simcamres(cres, pred.res)
cres |
results of classification (class |
pred.res |
list with prediction results from each model (pcares objects) |
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.
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. |
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
.
## see examples for simcam method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.