predict.homals | R Documentation |
Given a multiple homals solution we can reconstruct the indicator matrix by assigning each object to the closest category point of the variable. We can then find out how well we have reconstructed the original data in terms of a classification table.
## S3 method for class 'homals' predict(object, ...)
object |
Object of class |
... |
Further arguments ignored |
For variables with rank restrictions we first project the objects on the hyperplane spanned by the category quantifications, and then compute distances in that plane. If there are sets of variables, the percentage correctly classified for a variable is usually not the best thing to look at; except in some special cases, in which some sets consist of a single variable (such as regression and discriminant analysis). In any case a square table with observed vs. predicted values is computed.
cl.table |
List of classification tables for each variable. |
cr.vec |
Vector with classification rates. |
homals
data(galo) res <- homals(galo, active=c(TRUE, TRUE,TRUE, TRUE, FALSE)) pr.res <- predict(res) pr.res summary(pr.res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.