R/fitted.slmfit.R

Defines functions fitted.slmfit

Documented in fitted.slmfit

#' Extract Fitted Values from an \code{slmfit} object.
#'
#' @param object a \code{slmfit} object generated from the \code{\link{slmfit}()} function.
#' @param ... further arguments passed to or from other methods.
#'
#' @return a vector of fitted values (estimated means)
#' @export
#'
#' @examples
#' data(exampledataset) ## load a toy data set
#' slmobj <- slmfit(formula = counts ~ pred1 + pred2, data = exampledataset,
#' xcoordcol = 'xcoords', ycoordcol = 'ycoords', areacol = 'areavar')
#' fitted(slmobj)
fitted.slmfit <- function(object, ...) {
  return(object$FittedValues)
}

Try the sptotal package in your browser

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

sptotal documentation built on July 6, 2021, 5:07 p.m.