View source: R/generate-data.R
sample_sequences | R Documentation |
Sample Sequence Observation Model
sample_sequences(frac_voc, seq_total, phi)
frac_voc |
A numeric vector of expected proportions positive for the variant of concern. |
seq_total |
An integer vector of total sequences available. |
phi |
The overdispersion of the sampling process. If not supplied then no overdispersion is used (i.e a binomial observation model vs a beta binomial observation model). |
A vector of observed sequences positive for the variant of concern.
Functions to generate simulated data
generate_obs()
# dummy sequence data
frac_voc <- seq(0, 1, by = 0.1)
seq_total <- seq(10, length.out = length(frac_voc), by = 100)
# binomial observation model
sample_sequences(frac_voc, seq_total)
# beta binomial observation model
sample_sequences(frac_voc, seq_total, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.