calculateFoldChangeByKeyGroup: Calculate fold change for each key value between groups

View source: R/CalculateFoldChangeByKeyGroup.R

calculateFoldChangeByKeyGroupR Documentation

Calculate fold change for each key value between groups

Description

Calculate fold change for each key value between groups

Usage

calculateFoldChangeByKeyGroup(
  .data,
  .key,
  .group,
  .response,
  baselineGroupLabel,
  inf.rm = TRUE,
  ...
)

Arguments

.data

A dataframe

.key

A string or number - key value for dataframe. Statistics will be computed between groups for each key value

.group

A string - column indicating group membership - should be binary.

.response

A number - numerical value to use with statitical test. Should be log2 transformed values.

baselineGroupLabel

a string - indicating which statisical test to perform by name..

inf.rm

logical indicating whether to remove INF fold changes (dividing by 0) - defaults to TRUE

...

dots to accomodate additiaon arguments passed when called from parent function

Value

dataframe indicating fold change (raw and log2) between baseline and comparison for each group by key value


cusom/CUSOM.ShinyHelpers documentation built on Oct. 23, 2023, 6:50 a.m.