R/residuals.slmfit.R

Defines functions residuals.slmfit

Documented in residuals.slmfit

#' Extract Model Residuals
#'
#' @param object an object from \code{\link{slmfit}}
#' @param ... additional arguments
#' @return a vector of residuals. Without detection, the residuals are  each observed count minus the estimated mean. With detection, the residuals are each observed count minus (estimated mean times the estimated detection).
#' @export

residuals.slmfit <- function(object, ...)
{
  resid.vec <- object$resids
  return(resid.vec)
}
highamm/FPBKPack2 documentation built on Dec. 27, 2021, 7:56 a.m.