# moments for lambda = 2
moments(2)
# moments for 100 positive partitions of 765 total partitions
moments(c(100, 765))
# calculate moments for an array digital PCR, total number of positive partitions
ddpcr1 <- sim_ddpcr(m = 10, n = 40, times = 50, pos_sums = TRUE, n_exp = 5)
moments(ddpcr1)
# calculate moments for an array digital PCR, detailed number of molecules in each partition
ddpcr2 <- sim_ddpcr(m = 10, n = 40, times = 50, pos_sums = FALSE, n_exp = 5)
moments(ddpcr2)
Run the code above in your browser using DataLab