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/FPBK-with-Detection documentation built on Jan. 2, 2022, 6:35 a.m.