R/getPredErrorSTD.R

#' @title Return component \code{PredErrSTD} from the input object
#'
#' @description \code{getPredErrorSTD} extracts the standard deviation of the predicted values
#' from the slot \code{VarRoles} of the input object.
#'
#' @param object Object of class \linkS4class{contObsPredModelParam}.
#'
#' @return character vector corresponding to the component \code{PredErrSTD} of the input
#' parameter.
#'
#' @examples
#'
#' @export
setGeneric("getPredErrorSTD", function(object){standardGeneric("getPredErrorSTD")})

#' @rdname getPredErrorSTD
#'
#' @export
setMethod(
  f = "getPredErrorSTD",
  signature = c("contObsPredModelParam"),
  function(object){object@VarRoles$PredErrSTD}
)
david-salgado/contObsPredModelParam documentation built on Nov. 7, 2019, 5:45 p.m.