R/class-RGAModel.R

Defines functions RandomGeneAssignmentModel

Documented in RandomGeneAssignmentModel

#' RGAModel Class Definition
#'
#' @export
.RGAModel <- setClass('RGAModel', contains='SurvivalModel')
#'
#' RandomGeneAssignmentModel Constructor
#'
#' @inherit SurvivalModel
#'
#' @examples
#' data(sampleICGCmicro)
#' set.seed(1987)
#' RGAmodel <- RGAModel(sampleICGCmicro, minDaysSurvived=365, randomSeed=1987)
#'
#' @aliases RGAModel
#' @export
RandomGeneAssignmentModel <- function(trainCohorts, minDaysSurvived=365, ...,
    randomSeed)
{
    RGAmodel <- .RGAModel(SurvivalModel(trainCohorts, minDaysSurvived,
        randomSeed=randomSeed))
    return(RGAmodel)
}
#' @export
RGAModel <- RandomGeneAssignmentModel
bhklab/PanCuRx documentation built on Dec. 30, 2021, 4:59 p.m.