MixmodPredict-class | R Documentation |
MixmodPredict
] classThis is a class to run discriminant analysis with mixmod.
numeric vector, matrix, or data frame of observations. Either qualitative or quantitative.
character. It defines whether data are quantitative or qualitative.
integer. The number of variables.
integer. The number of observations.
a character. The mixmod error.
a [MixmodResults
] object containing the classification rule.
a matrix containing observations to predict.
a matrix of probabilities.
# start by extract 10 observations from iris data set
remaining.obs <- sample(1:nrow(iris), 10)
# then run a mixmodLearn() analysis without those 10 observations
learn <- mixmodLearn(iris[-remaining.obs, 1:4], iris$Species[-remaining.obs])
# create a MixmodPredict to predict those 10 observations
new("MixmodPredict", data = iris[remaining.obs, 1:4], classificationRule = learn["bestResult"])
getSlots("MixmodPredict")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.