Learn R Programming

TestDimorph (version 0.3.0)

aovSS: Sex-Specific One-way ANOVA From Summary statistics

Description

Calculates sex specific one-way ANOVA followed by from summary statistics.

Usage

aovSS(
  x,
  Pop = 1,
  pairwise = TRUE,
  letters = FALSE,
  es = FALSE,
  digits = 4,
  method = "hsd",
  sig.level = 0.05
)

Arguments

x

Tibble/data frame containing summary statistics, Default: NULL

Pop

Number of the column containing populations' names, Default: 1

pairwise

Logical; if TRUE runs multiple pairwise comparisons on different populations using post hoc test of choice, Default: TRUE

letters

Logical; if TRUE returns letters for pairwise comparisons where significantly different populations are given different letters, Default: FALSE'

es

Logical; if TRUE effect size is included in the output , Default: FALSE

digits

Number of significant digits, Default: 4

method

Type of post hoc test implemented by PostHocTest, Default: 'hsd'

sig.level

Critical p.value, Default: 0.05

Value

Sex specific ANOVA tables and pairwise comparisons in tidy format.

Details

Data is entered as a tibble/data frame of summary statistics where the column containing population names is chosen by position (first by default), other columns of summary data should have specific names (case sensitive) similar to baboon.parms_df

See Also

PostHocTest

Examples

Run this code
# NOT RUN {
  # Comparisons of femur head diameter in four populations
  library(TestDimorph)
m <- c(150.00, 82.00, 36.00, 34.00)
f <- c(150.00, 58.00, 34.00, 24.00)
M.mu <- c(49.39, 48.33, 46.99, 45.20)
F.mu <- c(42.91, 42.89, 42.44, 40.90)
M.sdev <- c(3.01, 2.53, 2.47, 2.00)
F.sdev <- c(2.90, 2.84, 2.26, 2.90)
df <- cbind.data.frame(
  Pop = c('Turkish', 'Bulgarian', 'Greek', 'Portuguese '),
  m,
  f,
  M.mu,
  F.mu,
  M.sdev,
  F.sdev,
  stringsAsFactors = TRUE
)
aovSS(x = df)
# }

Run the code above in your browser using DataLab