Learn R Programming

⚠️There's a newer version (0.5.8) of this package.Take me there.

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")

or the development version from GitHub:

devtools::install_github("bassam-abulnoor/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 RawGen 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
PopParmsmM.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.4.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

January 10th, 2021

Functions in TestDimorph (0.4.0)

Australia

Australia
D_index

Dissimilarity index
Howells_V

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

Pooled within group correlation matrix for Howells' data
AccuModel-deprecated

AccuModel
Howells_summary

Summary of the Howells' craniometric data
Cremains_measurements

Measurements from calcined postcranial materials.
HL

Hotelling-Lawley
Howells

The Howells' craniometric data
Hedges_g

Hedges' g
Pillai

Pillai
RawGen-deprecated

RawGen
Van_vark_raw

Van_vark_raw
Tg-deprecated

Tg
Wilks

Wilks
anova_main_II

ANOVA type II for main effects
aovSS-deprecated

aovSS
accu_model

Evaluation Of Sex prediction Accuracy
manova_III

MANOVA type III
eff_CI

eff_CI
anova_main_I

ANOVA type I for main effects
anova_es

anova_es
dataframe2list

converts multivariate dataframe to list
manova_II

MANOVA type II
manova_main_I

MANOVA type I for main effects
raw_gen

Raw Data Generation By Log-normal Or Truncated Distribution
multivariate

Multivariate Analysis Of Sexual Dimorphism
Roy

Roy's largest root
MI_index

Mixture Index ("MI")
NHANES_1999

NHANES 1999
anova_II

ANOVA type II
add_sig

add_sig
aov_ss

Sex Specific One way ANOVA From Summary statistics
extract_sum

Summary Statistics Extraction
van_vark

Graphical and statistical representation of dimorphism differences.
baboon.parms_R

Pooled within group correlation matrix for baboon data
AccuModel

Deprecated functions in package TestDimorph.
pMatrix-deprecated

Visualization Of t-Greene Pairwise Comparisons
t_greene

Greene t test of Sexual Dimorphism
rown_col

rown_col
t_test

t-greene test
manova_main_II

MANOVA type II for main effects
baboon.parms_df

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

ANOVA type III
univariate

Univariate Analysis Of Sexual Dimorphism
manova_I

MANOVA type I
padjust_n

padjust_n
pooled_cov

pooled_cov
baboon.parms_list

List format for the baboon.parms_df for multivariate analysis
cbind_fill

cbind_fill
anova_I

ANOVA type I
cbind_fill2

cbind_fill2
univariate_pairwise

post hoc univariate analysis to MANOVA
models

List of accu_model supported models
multi_raw

multivariate data generation