View source: R/predict_generic.R
predict.simfast | R Documentation |
simfast
object with a data frame or a matrixPredict values of a simfast
object with a data frame or a matrix.
Can also be called by running predict
on simfast
object.
Note that simfast
fits models on the response level, so only
'response' values are predicted.
## S3 method for class 'simfast'
predict(object, newdata, rule = 1, oob = FALSE, ...)
object |
an object of class |
newdata |
optional numeric matrix or data frame of new data. If
none is provided, the original data will be used. If a data frame
is provided, predictions cannot be made unless |
rule |
integer that describes how to handle predictor values
outside the range of the original data. By default, the value
is |
oob |
logical parameter that, if |
... |
further arguments passed to |
a numeric vector of the specified prediction values on the response
scale, unless oob = TRUE
, then returns a matrix with the first row
of prediction values on the response scale and a second row of logical
values indicating if data used to predict was out of bounds.
Hanna Jankowski hkj@yorku.ca Konstantinos Ntentes kntentes@yorku.ca (maintainer)
# See the example provided in the \code{\link{simfast}} documentation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.