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
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.4.1

License

GPL-3

Last Published

February 23rd, 2021

Functions in TestDimorph (0.4.1)

HL

Hotelling-Lawley
RawGen-deprecated

RawGen
Hedges_g

Hedges' g
extract_sum

Summary Statistics Extraction
anova_II

ANOVA type II
Roy

Roy's largest root
anova_I

ANOVA type I
eff_CI

eff_CI
pooled_cov

pooled_cov
univariate_pairwise

post hoc univariate analysis to MANOVA
van_vark

Graphical and statistical representation of dimorphism differences.
raw_gen

Raw Data Generation By Log-normal Or Truncated Distribution
baboon.parms_R

Pooled within group correlation matrix for baboon data
manova_main_I

MANOVA type I for main effects
D_index

Dissimilarity index
Cremains_measurements

Measurements from calcined postcranial materials.
NHANES_1999

NHANES 1999
Pillai

Pillai
Howells

The Howells' craniometric data
pMatrix-deprecated

Visualization Of t-Greene Pairwise Comparisons
Howells_R

Pooled within group correlation matrix for Howells' data
Australia

Australia
anova_main_I

ANOVA type I for main effects
anova_main_II

ANOVA type II for main effects
Howells_summary

Summary of the Howells' craniometric data
Howells_V

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

Sex Specific One way ANOVA From Summary statistics
MI_index

Mixture Index ("MI")
aovSS-deprecated

aovSS
Howells_summary_list

List format of Howells_summary for multivariate analysis
accu_model

Evaluation Of Sex prediction Accuracy
cbind_fill2

cbind_fill2
baboon.parms_list

List format for the baboon.parms_df for multivariate analysis
dataframe2list

converts multivariate dataframe to list
baboon.parms_df

data frame format for the baboon.parms_df for multivariate analysis
AccuModel-deprecated

AccuModel
univariate

Univariate Analysis Of Sexual Dimorphism
multivariate

Multivariate Analysis Of Sexual Dimorphism
cbind_fill

cbind_fill
multi_raw

multivariate data generation
t_test

t-greene test
models

List of accu_model supported models
AccuModel

Deprecated functions in package TestDimorph.
add_sig

add_sig
manova_main_II

MANOVA type II for main effects
padjust_n

padjust_n
Tg-deprecated

Tg
manova_III

MANOVA type III
rown_col

rown_col
Van_vark_raw

Van_vark_raw
t_greene

Greene t test of Sexual Dimorphism
anova_es

anova_es
manova_I

MANOVA type I
Wilks

Wilks
anova_III

ANOVA type III
manova_II

MANOVA type II