van_vark: Graphical and statistical representation of dimorphism...

Description Usage Arguments Details Value References Examples

View source: R/van_Vark.R

Description

Provides testing for differences in patterning of sexual dimorphism between populations, as well as for evolutionary trends that may characterize other species. The test is based on the computation of the first q canonical variates (q=2 by default) or multiple discriminant functions to develop various tests of sexual dimorphism in any two populations A and B.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
van_vark(
  x,
  W,
  q = 2,
  Trait = 1,
  Pop = 2,
  plot = TRUE,
  lower.tail = FALSE,
  digits = 4
)

Arguments

x

Data frame of means and sample sizes for different populations.

W

Pooled within-group variance-covariance matrix

q

Number of canonical variates to retain for chi square test, Default: 2

Trait

number of column containing names of traits Default: 1.

Pop

Number of the column containing populations' names, Default: 2

plot

Logical; if TRUE returns a graphical representation of dimorphism differences, Default: TRUE

lower.tail

Logical; if TRUE probabilities are 'P[X <= x]', otherwise, 'P[X > x]'., Default: FALSE

digits

Number of significant digits, Default: 4

Details

Input is a data frame of means and sample sizes similar to Howells_summary with the same naming conventions used throughout the functions but with the standard deviation columns removed.

Value

The output includes a two-dimensional plot that illustrate the existing differences between tested populations and a statistical test of significance for the difference in dimorphism using chi square distribution.

References

van Vark, G. N., et al. (1989). van Vark, G. N., et al. "Some multivariate tests for differences in sexual dimorphism between human populations." Annals of human biology 16.4: 301-310.

Examples

1
2
3
4
5
6
7
8
library(TestDimorph)
# selecting means and sample sizes
van_vark_data <- Howells_summary[!endsWith(
  x = names(Howells_summary),
  suffix = "dev"
)]
# running the function
van_vark(van_vark_data, Howells_V)

bassam-abulnoor/TestDimorph documentation built on Jan. 29, 2021, 8:21 a.m.