predict.bayz | R Documentation |
Prediction in bayz currently only supports prediction of the NA responses that were in the original data frame. Predict is simply a wrapper to retrieve them from the output. To predict data points that were not in the original data frame for analysis, the training model needs to be re-run with these data points added in the training data.
## S3 method for class 'bayz'
predict(object, id = NULL, ...)
object |
An output object of a bayz model run of class 'bayz'. |
id |
An optional ID that can be attached to the predicted values for reference. This should be a vector with length and order matching the original input data frame - typically it is a column of the original data frame such as id=mydata$myID. Omit for not attaching any reference ID. |
... |
Additional parameters passed onto the Model function. |
fitted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.