SSDLog: Sexual Size Dimorphism Calculator

View source: R/SSDLog.R

SSDLogR Documentation

Sexual Size Dimorphism Calculator

Description

Calculates the log ratio of sexual dimorphism, log(F/M) (adapted with alterations from Smith 1999). For the SDI (Lovich and Gibbons 1992), use SSDFunc(). Defaults to e as the base for the logarithm.

Usage

SSDLog(Size, Sex, Base = exp(1), positiveF = F)

Arguments

Size

A numerical vector giving the size of each individual as a scalar quantity

Sex

A character or factor vector recording sex for each individual as 'm' or 'f'

Base

the base for the logarithm (defaults to e = 2.718...)

positiveM

Smith 1999 has the log ratio with male biased being positive and female biased being negative (suited to mammalian research), can have the statistic operate in that manner by setting this to TRUE

Examples

SSDLog(Size, Sex)

TWilliamBell/angler documentation built on March 31, 2022, midnight