CalcOddedPick: A function to calculate the number of picked lives per...

Description Usage Arguments Value See Also Examples

Description

A function to calculate the number of picked lives per categories of samples according to MWNCHypergeo model.

Usage

1
CalcOddedPick(variant, survival, n = 10, verbose = TRUE)

Arguments

variant

The odded variant vector

survival

A survival vector

n

Number of life vectors to be generated (default is 10)

verbose

Logical. If TRUE (default), report status of the process along the execution.

Value

A list. list$odded.lives is a matrix containing a number of survivors per categories (e.g. list$odded.lives row names could be "HOMOREF", "HOMOALT", ...) with n column, each time generated with the same input values. list$odded.samples are the index of the samples belonging to each categories (e.g. list$odded.samples$HETERO could be c(1, 3, 8, 14))

See Also

For more detail, see IterRandPick which binds this function

Examples

1
2
3
4
5
6
## Not run: 
CalcOddedPick(variant, survival)
CalcOddedPick(variant, survival, n = 1000)
CalcOddedPick(variant, survival, verbose = FALSE)

## End(Not run)

laurentlab-mpipz/rsurvival documentation built on May 29, 2019, 9:14 a.m.