powered by
Computes the residuals either by taking the arc distance or the cosine distance between the predictions and the observed outcomes.
# S3 method for circGLM residuals(object, type = "arc", ...)
A circGLM object.
circGLM
Either "arc" or "cosine", the type of distance to take.
"arc"
"cosine"
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.
# NOT RUN { m <- circGLM(th = rvmc(10, 0, 1)) residuals(m) # Cosine residuals residuals(m, type = "cosine") # }
Run the code above in your browser using DataLab