compute_A: Function to compute A

Description Usage Arguments Value

View source: R/simu.R

Description

This function make a Dirichlet distribution

Usage

1
compute_A(n = 100, prop = c(0.3, 0.6, 0.1), alpha0 = 1)

Arguments

n

The number of patients to simulate.

prop

The different proportion of cell types in a vector of size k (number of cell types).

alpha0

The variance between the patients, 1 is an high variance and 10,000 is a very low variance.

Value

This function return a matrix of size k*n with the cell type proportions.


bcm-uga/medepir documentation built on Oct. 11, 2020, 2 a.m.