Skip to contents

Simulates the observation process

Usage

simulate_observed_allele(alleles, epsilon_pos, epsilon_neg, missingness)

Arguments

alleles

A numeric vector representing the number of strains contributing each allele

epsilon_pos

expected number of false negatives

epsilon_neg

expected number of false positives

missingness

probability that the data is missing

Details

Takes a numeric value representing the number of strains contributing an allele and returns a binary vector indicating the presence or absence of the allele.