ttest_by_group_multivar_func: Make T-test in grouping variables

ttest_by_group_multivar_funcR Documentation

Make T-test in grouping variables

Description

This function is similar to the function wilcxntest_by_group_multivar_func but using the parametric t-test for normally distributed datasets.

Usage

ttest_by_group_multivar_func(
  my_dataset,
  my_var_set,
  group_1 = c("Treatment", "Condition"),
  group_2 = "Animal",
  round_to = 2,
  p_adj_met = "BH",
  pairwise = TRUE,
  ...
)

Arguments

my_dataset

A cleaned dataframe.

my_var_set

A character vector with the names of variables to test.

group_1

Character of one or more values. The name for the first grouping comparison variable. Default to c("Treatment", "Condition").

group_2

Character. The name for the second grouping comparison variable. Default to "Animal".

round_to

Integer. A value to indicate number of decimals to used in final output. Default to 2.

p_adj_met

Character. One of the following methods p adjust methods: c("holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none". Defoult to "BH. for more info look at p.adjust.methods.

pairwise

Logical. If TRUE (the default) the function rstatix::pairwise_t_test() is used, else it will use the rstatix::t_test() function. Read documentation for the differences.

...

Additional parameters passed to the function rstatix::pairwise_t_test().

Value

a datatable with the output of the Wilcoxon test

Examples

# no example made jet.

rjlopez2/AnlysisOfWaves documentation built on Sept. 15, 2022, 2:25 p.m.