Majorityvotes: Classifiction for Majority Votes

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/Majorityvotes.R

Description

The Function fits cox proportional hazard model and does classification based on the majority votes.

Usage

1
Majorityvotes(Result, Prognostic, Survival, Censor, J = 1)

Arguments

Result

An object obtained from the metabolite specific analysis (MSpecificCoxPh) which is of class "ms"

Prognostic

A dataframe containing possible prognostic(s) factor and/or treatment effect to be used in the model.

Survival

A vector of survival time with length equals to number of subjects

Censor

A vector of censoring indicator

J

The jth set of patients required for the visualization. The default is J=1 which is the first set of patients. For visualization, J should be less than the number of patients divided by 25

Details

The Function fits cox proportional hazard model and does classification based on the majority votes while estimating the Hazard ratio of the low risk group. The function firstly count the number of low risk classification for each subject based on the metabolite specific analysis which determines the majority votes. In addition, It visualizes the metabolic specific calssification for the subjects. 25 subjects is taken for visualization purpose.

Value

A list is returned with the following values

Model.result

The cox proportional regression result based on the majority vote classification

N

The majority vote for each subject

Classif

The majority vote classification for each subjects

Group

The classification of the subjects based on each metabolite analysis

Author(s)

Olajumoke Evangelina Owokotomo, olajumoke.owokotomo@uhasselt.be

Ziv Shkedy

References

\insertRef

tibMetabolicSurv

See Also

MSpecificCoxPh, coxph, EstimateHR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## FIRSTLY SIMULATING A METABOLIC SURVIVAL DATA
Data = MSData(nPatients = 100, nMet = 150, Prop = 0.5)

## RUNNING THE METABOLITE SPECIFIC FUNCTION
Example1 = MSpecificCoxPh(Survival = Data$Survival,
Mdata = t(Data$Mdata), Censor = Data$Censor, Reduce = FALSE,
Select = 15,Prognostic = Data$Prognostic, Quantile = 0.5)

## USING THE FUNCTION
Result2 = Majorityvotes(Example1,Data$Prognostic, Data$Survival,Data$Censor,J=2)

## THE SURVIVAL ANALYSIS FOR MAJORITY VOTE RESULT
 Result2$Model.result

### THE MAJORITY VOTE FOR EACH SUBJECT
Result2$N

### THE MAJORITY VOTE CLASSIFICATION FOR EACH SUBJECT
Result2$Classif

### THE GROUP FOR EACH SUBJECT BASED ON THE METABOLITE SPPECIFIC ANALYSIS
Result2$Group

MetabolicSurv documentation built on June 11, 2021, 9:06 a.m.