calculate_hyperstat: Calculate hyperstats from observation stats

Description Usage Arguments Value

View source: R/calculate_hyperstat.R

Description

A function for calculating hyperstats from BayeSSC simulated stats. Here we calculate four hyperstats for each summary statistics: mean, variance, skewness and kurtosis as explained on https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Higher-order_statistics

Usage

1
calculate_hyperstat(obs, hbayessclike = T, col = NULL)

Arguments

obs

A data frame containing the BayeSSC simulated summary statistics

hbayessclike

TRUE (Default) or FALSE. If TRUE, directly calculte the hyperstat across all locus in all species. If FALSE, still need develop

col

A character vector providing the names of columns for hyperstat calculation. Currently this parameter is not in use.

Value

A data frame containing the calculated hyperstats


huatengh/CoExpansionValidation documentation built on Nov. 19, 2021, 11:07 a.m.