ValidOmicsSurv: Check validity of new Omics*-class objects

View source: R/createClass_validOmics.R

ValidOmicsSurvR Documentation

Check validity of new Omics*-class objects

Description

These functions check the validity of new objects created in the OmicsSurv, OmicsReg, and OmicsCateg classes.

Usage

ValidOmicsSurv(object)

ValidOmicsReg(object)

ValidOmicsCateg(object)

Arguments

object

An object potentially of class OmicsSurv, OmicsReg, or OmicsCateg.

Details

We have currently written checks to make sure the dimensions of the mass spectrometry or bio-assay data frame and response matrices or vectors match. Other checks should be added in response to user feedback during or after beta testing. ENHANCEMENT.

Value

TRUE if the object is a valid object, else an error message with the rule broken.

OmicsSurv

Valid OmicsSurv objects will have two response vectors: a vector of the most recently recorded follow-up times and a logical vector if that time marks a death or event (TRUE: observed event; FALSE: right-censored observation).

OmicsReg and OmicsCateg

Valid OmicsReg and OmicsCateg objects with have one response vector of continuous (numeric) or categorial (factor) observations, respectively.


gabrielodom/pathwayPCA documentation built on July 10, 2023, 3:32 a.m.