Skip to contents

Calculate allometry corrected SShD using a linear model. Common allometry is assumed here.

Usage

SShDLM.allom(Coords, Sex, Size, zeroed = T, stat = "median", iter = 1000)

Arguments

Coords

Two-dimensional array of coordinates from geometric morphometric analysis (see two.d.array() in geomorph for correct formatting)

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

Size

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

zeroed

a logical value stating whether you wish to correct the SShD for a natural zero (defaults to TRUE) @param stat A character value specifying the centering statistic to be used if Zeroed is set to TRUE (currently supports the median (default) and minimum)

iter

a numeric value specifying the number of iterations the null SShD correction factor should be permuted for

Examples

data(pupfish)
with(pupfish, SShDLM.allom(coords, Sex, CS, zeroed = F))
#> [1] NA