Learn R Programming

TestDimorph

Analysis Of The Interpopulation Difference In Degree of Sexual Dimorphism Using Summary Statistics

Installation

You can install the released version of TestDimorph from CRAN with:

install.packages("TestDimorph")

Data entry

The input can be in the form of wide format raw data or summary statistics where each row represents measurements of a single individual or population. In order to be recognized by the functions, columns need to have specific names (case sensitive):

  1. Sex : either M for male or F for female (Raw data)
  2. Pop : studied populations (Summary/Raw data)
  3. Trait : studied traits or parameters (Summary)
  4. m : male sample size (Summary)
  5. f : female sample size (Summary)
  6. M.mu: male mean (Summary)
  7. F.mu : female mean (Summary)
  8. M.sdev : male standard deviation (Summary)
  9. F.sdev : female standard deviation (Summary)

N.B

  • All non numerical values need to be factors.
  • The list and the data frame formats for the multivariate and raw_gen functions input, can be be found in the attached data sets under the names baboon.parms_list and baboon.parms_df respectively.

Examples of data entry

Summary statistics for univariate analysis

Comparison of maximal femur length and mediolateral diameter in mid-shaft
PopmM.muM.sdevfF.muF.sdev
Turkish15049.393.0115042.912.90
Bulgarian8248.332.535842.892.84

Summary statistics for multivariate analysis and raw data generation

Comparison of maximal femur length and mediolateral diameter in mid-shaft
PopTraitmM.muM.sdevfF.muF.sdev
BulgarianMXFL82461.8019.9058411.7023.20
GreekMXFL36440.4019.6034409.8021.40
BulgarianMLD8227.672.215824.891.78
GreekMLD3627.741.793426.692.42

Raw data for summary extraction

The Howells' craniometric data
SexPopGOLNOLBNLBBHXCBXFBZYBAUB
MNORSE189185100135143120133119
FNORSE17917797127140114122118
MEGYPT192190104132140116134125
FEGYPT17417293123140118121114

Summary statistics for van_vark function

Howells summary data
TraitPopM.mumF.muf
GOLEGYPT185.620758175.584953
GOLNORSE188.472755179.981855
NOLEGYPT183.56958175.037753
NOLNORSE186.181855178.690955

Copy Link

Version

Install

install.packages('TestDimorph')

Monthly Downloads

265

Version

0.5.8

License

GPL-3

Last Published

November 17th, 2023

Functions in TestDimorph (0.5.8)

SMO

Hypothetical set of unbalanced data
baboon.parms_R

Pooled within group correlation matrix for baboon data
baboon.parms_df

data frame format for the baboon.parms_df for multivariate analysis
raw_gen

Raw Data Generation By Normal Or Truncated Normal Distribution
van_vark

Graphical and statistical representation of dimorphism differences.
multivariate

Multivariate Analysis Of Sexual Dimorphism
baboon.parms_list

List format for the baboon.parms_df for multivariate analysis
extract_sum

Summary Statistics Extraction
t_greene

Greene t test of Sexual Dimorphism
univariate

Univariate Analysis Of Sexual Dimorphism
Howells

The Howells' craniometric data
MI_index

Mixture Index ("MI")
NHANES_1999

NHANES 1999
aov_ss

Sex Specific One way ANOVA From Summary statistics
Cremains_measurements

Measurements from calcined postcranial materials.
D_index

Dissimilarity index
Hedges_g

Hedges' g
FT

Heuristic data
Howells_summary

Summary of the Howells' craniometric data
Australia

Australia
Howells_R

Pooled within group correlation matrix for Howells' data
Howells_V

Pooled within-group variance-covariance matrix for Howells' data
Howells_summary_list

List format of Howells_summary for multivariate analysis