valorate.risk: ESTIMATES RISK

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

Description

Estimates the risk (hazard ratio), and confidence interval of a 'mutated' group.

Usage

1
valorate.risk(vro, clusters)

Arguments

vro

the valorate object.

clusters

a numerical or logical vector representing the two survival groups encoded in 1/TRUE for those 'mutated' (in the group of interest) or 1/FALSE for those who not. Basically this value is the 'x' vector in the VALORATE re-formulation. See references.

Details

A coxph model depending on clusters is run to establish the risk/hazard ratio.

Value

A number representing the relative risk. The confidence interval, p-value, and the coxph model are included as attributes.

Author(s)

Victor Trevino vtrevino@itesm.mx

References

Trevino et al. 2016 http://bioinformatica.mty.itesm.mx/valorateR

See Also

new.valorate. valorate.survdiff. coxph (survival package).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Create a random population of 100 subjects 
## having 20 events
subjects <- numeric(100)
subjects[sample(100,20)] <- 1
vo <- new.valorate(rank=subjects, sampling.size=100000, verbose=TRUE)

groups <- numeric(100)
groups[sample(100,20)] <- 1  # 20 to likely see some difference
pvr <- valorate.survdiff(vo, groups) 
print(pvr)

valorate.risk(vo, groups)

valorate documentation built on May 1, 2019, 9:10 p.m.