Description Usage Arguments Examples
View source: R/mssumstats_old2.R
Takes output from microsimr or an empirical microsatellite dataset and outputs summary statistics
1 2 3 4 |
simd_data |
output from microsimr |
type |
"microsimr" for microsimr output, "microsats" for allelic microsatellite format |
by_pop |
name of population variable. If specified, all summary statistics will be calculated within populations |
start_geno |
integer, specifying the first column with genotypes. If now specified, all column are expected to be genotypes |
data_type |
if "empirical", the mratio will be calculated differently, see ?m_ratio |
rarefaction |
if TRUE, calculates mean and sd number of alleles as mean of n_samp individuals and n_loc loci over n_boot bootstraps |
nsamp |
number of samples to subssample |
nloc |
number of loci to subsample |
nboot |
number of bootstraps |
1 2 3 4 5 6 7 8 9 | data(microsimr_data)
mssumstats(microsimr_data)
data(microsat_data)
mssumstats(microsat_data, type = "microsats", data_type = "empirical")
data(fur_seal)
mssumstats(fur_seal, type = "microsats", by_pop = "pop", start_geno = 4,
data_type = "empirical")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.