valorate.random.n1 {valorate} | R Documentation |
ESTIMATES THE LOG-RANK DISTRIBUTION OF RANDOM VECTORS
Description
This method estimates the log-rank distribution for random vectors of size n1.
Usage
valorate.random.n1(vro, n1, simulations=1000)
Arguments
vro |
the valorate object. |
n1 |
a numerical value (perhaps integer) of the size of the survival group. |
simulations |
a numerical value of the number of simulations to perform. |
Details
This method estimates the log-rank distribution for a minor size group equal to n1 where the group is randomly and uniformly generated. It is itended to estimate random log-ranks values.
Value
The vector of log-rank values of size equal to simulations.
Author(s)
Victor Trevino vtrevino@itesm.mx
References
Trevino et al. 2016 https://bioinformatics.mx/index.php/bioinfo-tools/
See Also
new.valorate
.
valorate.survdiff
.
Examples
## 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)
# and with verbose
## generate random log-ranks
valorate.random.n1(vo, 10, 100)
[Package valorate version 1.0-5 Index]