Compute fold-change or convert between log-ratio and fold-change.
foldchange computes the fold change for two sets of values.
logratio2foldchange converts values from log-ratios to fold
foldchange2logratio does the reverse.
1 2 3
vector/matrix of numeric values
vector/matrix of log-ratio values
vector/matrix of fold-change values
Exponential base for the log-ratio.
Fold changes are commonly used in the biological sciences as a mechanism for comparing the relative size of two measurements. They are computed as: num/denom if num>denom, and as -denom/num otherwise.
Fold-changes have the advantage of ease of interpretation and symmetry about num=denom, but suffer from a discontinuty between -1 and 1, which can cause significant problems when performing data analysis. Consequently statisticians prefer to use log-ratios.
A vector or matrix of the same dimensions as the input containing the converted values.
Gregory R. Warnes email@example.com
1 2 3 4 5 6