scan_hh from package rehh to
calculate this statistic. Please refer
to their documentation for detailed information on the implementation.
Please cite the corresponding publication (see below) if you use the
statistic for a publication.
sumstat_ihh(name = "ihh", population = 1, max_snps = 1000, calc_ihs = FALSE, transformation = identity)Inf to use all SNPs.TRUE, additionally standardized iHS is
calculated.calc_ihs = FALSE, a data.frame with values for
iHH and iES is returned. Otherwise, a list of two data frames are
returned, one for IHH and IES values and the other one for IHS values.In all `data.frames` rows are SNPs and the colums present the following
values for each SNP:
coal_modelTo calculate this statistic from data: calc_sumstats_from_data
Other summary statistics: sumstat_dna,
sumstat_file,
sumstat_four_gamete,
sumstat_jsfs, sumstat_mcmf,
sumstat_nucleotide_div,
sumstat_omega,
sumstat_seg_sites,
sumstat_sfs,
sumstat_tajimas_d,
sumstat_trees
model <- coal_model(20, 1, 1000) +
feat_mutation(1000) +
sumstat_ihh()
## Not run:
# stat <- simulate(model)
# print(stat$ihh)## End(Not run)
Run the code above in your browser using DataLab