#' Effect Size of Sexual Shape Dimorphism by Stratum
#'
#' A potential effect size statistic, another way of representing sexual shape dimorphism that is more readily comparable between studies, calculated by group. Roughly analogous to the D-statistic, but don't quote me on that.
#'
#' @param Coords Two-dimensional array of coordinates from geometric morphometric analysis (see two.d.array() in geomorph for correct formatting)
#' @param Sex A character or factor vector recording sex for each individual as 'm' or 'f', individuals should be in the same order as the rows of the Coords
#' @param Strata A character or factor vector giving the factor by which we wish to divide individuals into groups before calculating SShD and SSD, individuals should be in the same order as the rows of the Coords
#'
#' @export
StratEffectShape <- function(Strata, Coords, Sex) {
Results <- StratSShD(Coords, Strata, Sex)$SShD/StratPSDShape(Strata, Coords, Sex)
Results
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.