View source: R/circGLMClassFunctions.R
residuals.circGLM | R Documentation |
Computes the residuals either by taking the arc distance or the cosine distance between the predictions and the observed outcomes.
## S3 method for class 'circGLM' residuals(object, type = "arc", ...)
object |
A |
type |
Either |
... |
Further arguments passed to or from other methods. |
A numeric vector of residuals. If type is "arc"
, these are
angles in radians. If type is "cosine"
, these are numeric values
between 0 and 2.
m <- circGLM(th = rvmc(10, 0, 1)) residuals(m) # Cosine residuals residuals(m, type = "cosine")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.