predict.loclda | R Documentation |
Classifies new observations using parameters determined by
the loclda
-function.
## S3 method for class 'loclda'
predict(object, newdata, ...)
object |
Object of class |
newdata |
Data frame of cases to be classified. |
... |
Further arguments are ignored. |
A list with components:
class |
Vector (of class |
posterior |
Posterior probabilities for the classes.
For details of computation see |
all.zero |
Vector (of class |
Marc Zentgraf (marc-zentgraf@gmx.de) and Karsten Luebke (karsten.luebke@fom.de)
loclda
data(B3)
x <- loclda(PHASEN ~ ., data = B3, subset = 1:80)
predict(x, B3[-(1:80),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.