R/getRawData.R

#' @title Return slot \code{rawData} from the input object
#'
#' @description \code{getRawData} extracts the slot \code{rawData} which contains the edited data
#' for the construction of a categorical observation-prediction model.
#'
#' @param object Object of class \linkS4class{fitParam}.
#'
#' @return Object of class \code{"\link[StQ]{StQ}"} corresponding to the slot \code{rawData} of the input
#' object.
#'
#' @examples
#' \dontrun{
#' source('R:/USIE/Proyecto_DepSel_VarQual/datos/PreparacionStQsAnalisis.R', encoding = 'UTF-8')
#' fitPar <- new(Class = 'fitParam', edData = ff_2011_model.StQ, rawData = fd_2011_model.StQ,
#'               selection = FALSE,  formula = 'Ocupacion_35.__11.1.3._ ~ ActivEcono_35.__2.1.1._',
#'               selParam = list())
#' getRawData(fitPar)
#'}
#'
#' @import StQ
#'
#' @export
setGeneric("getRawData", function(object){standardGeneric("getRawData")})

#' @rdname getRawData
#'
#' @include fitParam-class.R
#'
#' @export
setMethod(
  f = "getRawData",
  signature = c("fitParam"),
  function(object){object@rawData}
)
david-salgado/categObsPredModelParam documentation built on Dec. 3, 2020, 1:42 p.m.