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

177

Version

0.3.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Bassam A. Abulnoor

Last Published

October 29th, 2020

Functions in TestDimorph (0.3.5)

V_to_R

Correlation matrix extraction
Howells

The Howells' craniometric data
aovSS-deprecated

aovSS
Tg-deprecated

Tg
R

Pooled within group correlation matrix for baboon data
anova_es

anova_es
AccuModel-deprecated

AccuModel
AccuModel

Deprecated functions in package TestDimorph.
accu_model

Evaluation Of Sex prediction Accuracy
RawGen-deprecated

RawGen
aov_ss

Sex Specific One way ANOVA From Summary statistics
van_Vark

FUNCTION_TITLE
baboon.parms_df

Summary statistics of baboon data collection list A dataset containing summary statistics for low density lipoprotein (LDL) and apolipoprotein B (apo B) levels in 604 baboons measured on two different diets: a basal diet 'chow' and a high cholesterol, saturated fat diet 'pink' (HCSF). The baboons were classified into one of three subspecies (Papio hamadryas anubis, P.h. cynocephalus, or anubistcynocephalus hybrid). Each animal was measured on each of the two diets.
pMatrix-deprecated

Visualization Of t-Greene Pairwise Comparisons
multivariate

Multivariate Analysis Of Sexual Dimorphism
padjust_n

padjust_n
extract_sum

Summary Statistics Extraction
raw_gen

Raw Data Generation By Log-normal Or Truncated Distribution
dataframe2list

converts multivariate dataframe to list
t_test

t-greene test
t_greene

Greene t test of Sexual Dimorphism
baboon.parms_list

Summary statistics of baboon data collection data frame A dataset containing summary statistics for low density lipoprotein (LDL) and apolipoprotein B (apo B) levels in 604 baboons measured on two different diets: a basal diet 'chow' and a high cholesterol, saturated fat diet 'pink' (HCSF). The baboons were classified into one of three subspecies (Papio hamadryas anubis, P.h. cynocephalus, or anubistcynocephalus hybrid). Each animal was measured on each of the two diets.
univariate

Univariate Analysis Of Sexual Dimorphism
to_params

FUNCTION_TITLE
index_D

Dissimilarity index
cbind_fill

cbind_fill
multi_raw

multivariate data generation