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

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

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

**Sex** : The gender; either **M** for male or **F** for female (*Summary/Raw data*)
**Pop** : Populations of the measured individuals (*Summary/Raw data*)
**Parms** : Measured numerical parameters for multivariate analysis (*Summary*)
**m** : Male sample size (*Summary*)
**f** :Female sample size (*Summary*)
**M.mu**: Male mean (*Summary*)
**F.mu** :Female mean (*Summary*)
**M.sdev** : Male standard deviation (*Summary*)
**F.sdev** :Female standard deviation (*Summary*)

**N.B**

- All non numerical values need to be entered as factors.
- Certain functions (e.g.
`multivariate`

,`RawGen`

) can accept lists as well as data frames as demonstrated in their respective help files.
- The list and the data frame formats for the
`multivariate`

function 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

Turkish |
150 |
49.39 |
3.01 |
150 |
42.91 |
2.90 |

Bulgarian |
82 |
48.33 |
2.53 |
58 |
42.89 |
2.84 |

#### Raw data

##### The Howells’ craniometric data

M |
NORSE |
189 |
185 |
100 |
135 |
143 |
120 |
133 |
119 |

F |
NORSE |
179 |
177 |
97 |
127 |
140 |
114 |
122 |
118 |

M |
EGYPT |
192 |
190 |
104 |
132 |
140 |
116 |
134 |
125 |

F |
EGYPT |
174 |
172 |
93 |
123 |
140 |
118 |
121 |
114 |