Predicts a model outcome based on newdata
and a fitted LDA object
. A value (which
may be NA) is returned for every instance including those with missing data and for the
fitted data
before filtering in the case that newdata
is not specified.
NA is returned for cases with unfitted factor levels.
1 2 |
object |
A |
newdata |
Optionally, a data frame including the variables used to fit the model.
If omitted, the |
na.action |
Function determining what should be done with missing values in |
... |
Additional arguments to pass to predict.lda. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.