R/residuals-SVC_mle.R

Defines functions residuals.SVC_mle

Documented in residuals.SVC_mle

#' @title Extact Model Residuals
#'
#' @description Method to extract the residuals from an \code{\link{SVC_mle}}
#' object. This is only possible if \code{save.fitted} was set to \code{TRUE}.
#'
#' @param object \code{\link{SVC_mle}} object
#' @param ...    further arguments
#'
#' @return (\code{numeric(n)})
#'    Residuals of model
#'
#' @author Jakob Dambon
#'
#' @importFrom stats residuals resid
#' @export
residuals.SVC_mle <- function(object, ...) {
  stopifnot(!is.null(object$residuals))
  return(object$residuals)
}

Try the varycoef package in your browser

Any scripts or data that you put into this service are public.

varycoef documentation built on Sept. 18, 2022, 1:07 a.m.