Extract summary data needed for other functions from raw data.
Usage
extract_sum(x, Sex = 1, Pop = 2, firstX = 3, test = 1, run = TRUE, ...)
Value
Input for other functions.
Arguments
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
Details
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.
# for multivariate testlibrary(TestDimorph)
extract_sum(Howells, test = 4)
# for univariate test on a specific parameterlibrary(TestDimorph)
extract_sum(Howells, test = 2, firstX = 4)