Description Usage Arguments Details Value Author(s) References See Also Examples
Estimates the risk (hazard ratio), and confidence interval of a 'mutated' group.
1 | valorate.risk(vro, clusters)
|
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. |
A coxph model depending on clusters is run to establish the risk/hazard ratio.
A number representing the relative risk. The confidence interval, p-value, and the coxph model are included as attributes.
Victor Trevino vtrevino@itesm.mx
Trevino et al. 2016 http://bioinformatica.mty.itesm.mx/valorateR
new.valorate
.
valorate.survdiff
.
coxph
(survival package).
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.