View source: R/circGLMClassFunctions.R
predict.circGLM | R Documentation |
Obtain predictions from the original dataset, or the predictions from the
fitted model on a new dataset newdata
.
## S3 method for class 'circGLM' predict(object, newdata, ...)
object |
A |
newdata |
A data frame with predictors. The predictors must be the same
as used in the |
... |
Further arguments passed to or from other methods. |
A numeric vector with predictions.
dat <- generateCircGLMData() m <- circGLM(th ~ ., dat) # Predictions for the original outcome angles. predict(m) # Predictions for new data dat2 <- generateCircGLMData() predict(m, newdata = dat2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.