Skip to contents

Calculates the SDI measure of sexual size dimorphism (Lovich and Gibbons 1992). Male-biased sexual dimorphism is distinguished by a negative sign

Usage

SSDI(Size, Sex)

Arguments

Size

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

Sex

character or factor vector of individual's sexes given as 'f' for female and 'm' for male

Value

Numeric value of the SDI measure of sexual size dimorphism

Examples

data(pupfish)
with(pupfish, SSDI(CS, Sex))
#> Warning: No data found for at least one sex. Sex variable must be formatted as 'm' and 'f' (see ConvertSexFormat)
#> [1] NA