predict.circGLM: Obtain predictions for the circGLM model

View source: R/circGLMClassFunctions.R

predict.circGLMR Documentation

Obtain predictions for the circGLM model

Description

Obtain predictions from the original dataset, or the predictions from the fitted model on a new dataset newdata.

Usage

## S3 method for class 'circGLM'
predict(object, newdata, ...)

Arguments

object

A circGLM object.

newdata

A data frame with predictors. The predictors must be the same as used in the circGLM object and must have the same column names.

...

Further arguments passed to or from other methods.

Value

A numeric vector with predictions.

Examples

dat <- generateCircGLMData()
m   <- circGLM(th ~ ., dat)

# Predictions for the original outcome angles.
predict(m)

# Predictions for new data
dat2  <- generateCircGLMData()
predict(m, newdata = dat2)

keesmulder/circglmbayes documentation built on July 24, 2022, 6:39 a.m.