Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Doc: Statistical Testing

kmorrisongr edited this page Feb 17, 2020 · 1 revision

Calculate Change Over Baseline

fcst_covb(fc, method=fch_covb_simple)

  • Calculate change over baseline for each subject using a provided method.
  • @param fc The Fc Array data frame, in longitudinal format.
  • @param method The method used to calculate change over baseline. The default is a simple division.
  • @return The Fc Array data frame, in longitudinal format (sans the first time point, which is baseline), with all feature MFI values replaced by change over baseline values as calculated by method.

Perform Mann-Whitney U Test On Fc Array Features

fcst_mannwhit(fc, adj_method, alternative="two.sided", exact=FALSE)

  • For each feature in an Fc Array data frame, perform the Mann-Whitney U (Wilcoxon Rank-Sum) test to test the null hypothesis that a randomly selected value from one population (group) will be less than or greater than a randomly selected value from a second population (group). Here, this is to test whether the two sets of samples, which should be independent (treatment group A should not have an impact on treatment group B), were selected from populations having the same distribution, and there thus being no difference in the groups.
  • @param fc The Fc Array data frame. Must have two groups present.
  • @param adj_method The method you want to use to adjust p-values. Use "none" as a passthrough.
  • @param alternative What alternative hypothesis we're testing. Supports "two.sided", "one.sided", and "either" (result of "two.sided"/2).
  • @param exact A boolean to control whether or not exact p-values are calculated.
  • @return A vector of p-values of the same length as fccu_first_feat_col(fc):ncol(fc).

Calculate Fold Change For Fc Array Features

fcst_fochs(fc, comp_name, method=median){

  • For each feature in an Fc Array data frame, calculate the fold change between the measurements of one group and another using method. Which group is the numerator in the fold change ratio is determined by the structure of comp_name.
  • @param fc The Fc Array data frame. Must have two groups present.
  • @param comp_name A string representing the name of the group comparison. This should be a contraction of the groups you are comparing, separated by an underscore. The first group in this string will be the numerator in the fold change ratios.
  • @param method What method will be used to calculate fold change. The default is the median of each group's values.
  • @return A vector of fold change values of the same length as fccu_first_feat_col(fc):ncol(fc)

Clone this wiki locally