predict_function.circGLM: Obtain a prediction function from a circGLM object
Description
This functions creates and returns a new prediction function that
takes in new data, and returns their predicted values. The prediction
function is based on the posterior estimates.
A link function to use in the analysis. Should be the same as
the link function.
Value
A function that takes newdata as an argument, which must be a
data frame with predictors. The predictors must be the same as used in the
circGLM object and must have the same column names.
# NOT RUN {dat <- generateCircGLMData()
m <- circGLM(th ~ ., dat)
predfun <- predict_function.circGLM(m)
newd <- generateCircGLMData()
# Predicted values of the new data.predfun(newd)
# }