Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ttest_protti

Perform Welch's t-test


Description

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

Usage

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

Arguments

mean1

Vector containing the means of group1.

mean2

Vector containing the means of group2.

sd1

Vector containing the standard deviations of group1.

sd2

Vector containing the standard deviations of group2.

n1

Vector containing the number of replicates used for the calculation of each mean and standard deviation of group1.

n2

Vector containing the number of replicates used for the calculation of each mean and standard deviation of group2.

log_values

Logical indicating if values are log transformed. This determines how fold changes are calculated. Default is log_values = TRUE.

Value

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
)

protti

Bottom-Up Proteomics and LiP-MS Quality Control and Data Analysis Tools

v0.1.1
MIT + file LICENSE
Authors
Jan-Philipp Quast [aut, cre], Dina Schuster [aut], ETH Zurich [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.