Description Usage Arguments Details Value Examples
Extract summary data needed for other functions from raw data.
1 | extract_sum(x, Sex = 1, Pop = 2, firstX = 3, test = 1, run = TRUE, ...)
|
x |
Data frame of raw data. |
Sex |
Number of the column containing sex 'M' for male and 'F' for female, Default: 1 |
Pop |
Number of the column containing populations' names, Default: 2 |
firstX |
Number of column containing measured parameters (First of multiple in case of multivariate analysis), Default: 3 |
test |
'1' for Greene t test t_greene, '2' for univariate, '3' for sex specific ANOVA aov_ss, '4' for multivariate, and '5' for van_vark, Default: 1 |
run |
Logical; if TRUE runs the corresponding test after data extraction, Default:TRUE |
... |
Additional arguments that could be passed to the test of choice |
Raw data is entered in a wide format data frame similar to Howells data set. The first two columns contain sex 'Sex' (‘M' for male and 'F' for female) (Default: '1') and populations’ names 'Pop' (Default:'2'). Starting from 'firstX' column (Default: '3'), measured parameters are entered each in a separate column.
Input for other functions.
1 2 3 4 5 6 | # for multivariate test
library(TestDimorph)
extract_sum(Howells, test = 4)
# for univariate test on a specific parameter
library(TestDimorph)
extract_sum(Howells, test = 2, firstX = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.