ttest_protti function

Perform Welch's t-test

Perform Welch's t-test

Performs a Welch's t-test and calculates p-values between two groups.

ttest_protti(mean1, mean2, sd1, sd2, n1, n2, log_values = TRUE)

Arguments

  • mean1: a numeric vector that contains the means of group1.
  • mean2: a numeric vector that contains the means of group2.
  • sd1: a numeric vector that contains the standard deviations of group1.
  • sd2: a numeric vector that contains the standard deviations of group2.
  • n1: a numeric vector that contains the number of replicates used for the calculation of each mean and standard deviation of group1.
  • n2: a numeric vector that contains the number of replicates used for the calculation of each mean and standard deviation of group2.
  • log_values: a logical value that indicates if values are log transformed. This determines how fold changes are calculated. Default is log_values = TRUE.

Returns

A data frame that contains the calculated differences of means, standard error, t statistic and p-values.

Examples

ttest_protti( mean1 = 10, mean2 = 15.5, sd1 = 1, sd2 = 0.5, n1 = 3, n2 = 3 )
  • Maintainer: Jan-Philipp Quast
  • License: MIT + file LICENSE
  • Last published: 2024-10-21