View source: R/sim_find_num_nas.R
sim_find_num_nas | R Documentation |
This function computes the number of NAs that are needed to achieve a certain missing genotype rate given the size of the input genotype matrix which is num_snps rows and num_gametes columns.
sim_find_num_nas(num_gametes, num_snps, missing_genotype_rate)
num_gametes |
an integer, the number of gametes or the number of columns of the genotype matrix |
num_snps |
an integer, the number of snps or the number of rows of the genotype matrix |
missing_genotype_rate |
a numeric, < 1, the missing genotype rate |
num_nas an integer, the product of the missing genotype rate and the number of genotypes (num_snps
* num_gametes
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.