Description Usage Arguments Value References Examples
View source: R/Quant_Poolingfuns.R
The function calculates the convolution of two empirical distributions up to the value of
cutoff
(on the sum of two random variables).
1 | convol.dens(ecdf1, ecdf2, N1, N2, cutoff)
|
ecdf1 |
An ecdf that is the matrix output object from the function |
ecdf2 |
An ecdf that is the matrix output object from the function |
N1 |
The size of the empirical support of |
N2 |
The size of the empirical support of |
cutoff |
Cutoff of the support of the resulting convolution distribution |
The function returns a matrix of three columns: The support of convolution distribution
up to cutoff
, empirical PMF and empirical CDF.
Liu T, Hogan JW, Daniels, MJ, Coetzer M, Xu Y, Bove G, et al. Improved HIV-1 Viral Load Monitoring Capacity Using Pooled Testing with Marker-Assisted Deconvolution. Journal of AIDS. 2017;75(5): 580-587.
1 2 3 4 | experiment_1 <- ecdf_pool(c(0,1,2,4,4,4,4,5,0,9,87,12), cutoff = 8)
example_ecdf_pool <- ecdf_pool(round(runif(100, 0, 20)), cutoff = 18)
convol.dens(example_ecdf_pool$out, example_ecdf_pool$out, cutoff = 18)
convol.dens(experiment_1$out, experiment_1$out, cutoff = 8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.