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

Acknowledgement

The authors would like to express their endless gratitude to Prof. Konigsberg for his contribution to this package with authentic code used in the multivariate, extract_sum,RawGen functions, data sets used in the examples and for his overall valuable work in the field of physical anthropology without which this package wouldn't have been possible.

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 a specific name (case sensitive):

  1. Sex : Either M for male or F for female (Raw data)
  2. Pop : Populations of the measured individuals (Summary/Raw data)
  3. Parms : Measured numerical parameters for multivariate analysis and raw data generation (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 entered as factors.
  • The list and the data frame formats for the multivariate and RawGen functions can be be found in the attached data sets under the names baboon.parms_list and baboon.parms_df respectively.
  • In the input of most of the functions, columns are referred to by number to avoid confusion.

Examples

Summary statistics for univariate analysis

Comparison of femur head diameters in two populations
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 femur head diameters in two populations
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

Copy Link

Version

Install

install.packages('TestDimorph')

Monthly Downloads

214

Version

0.3.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Bassam A. Abulnoor

Last Published

January 30th, 2020

Functions in TestDimorph (0.3.0)

baboon.parms_list

Summary statistics of baboon data collection-data frame
multivariate

Multivariate Analysis Of Sexual Dimorphism
Tg

Greene t-test of Sexual Dimorphism
Howells

The Howells' craniometric data
TestDimorph-deprecated

Deprecated functions in package TestDimorph.
cbind_fill

cbind_fill
univariate

Univariate Analysis Of Sexual Dimorphism
padjust_n

padjust_n
pMatrix-deprecated

Visualization Of t-Greene Pairwise Comparisons
extract_sum

Summary Statistics Extraction
aovSS

Sex-Specific One-way ANOVA From Summary statistics
RawGen

Raw Data Generation By Log-normal Or Truncated Distribution
R

Pooled within group correlation matrix for baboon data
AccuModel

Evaluation Of Sex-prediction Accuracy
baboon.parms_df

Summary statistics of baboon data collection-list
anova_es

anova_es