jar | R Documentation |
jar adds a specified number to all features of both input vectors, after which it calculates rate ratios for all features. The function was designed to prevent zeros in count data.
jar(t1, t0, n = 5, log = 2, normfun = "sum", normsubset)
t1 |
Numeric vector. Feature data in test sample |
t0 |
Numeric vector. Feature data in control sample |
n |
Numeric. Specify how much is added to each value before calculating rate ratios. Default = 5 |
log |
Logical or numeric. Specify whether to log-transform the rate ratio, and with what base. If TRUE, uses natural logarithm. Default = 2 |
normfun |
Character string. Specify with which function to standardize the data. Default = "sum" |
normsubset |
Integer vector. Specify the indices of features that are to be used in standardization |
Returns a numeric vector of the same length as the input vectors with the (log2-transformed) rate ratios after adding a specified number to all features.
Jos B. Poell
radjust
, doublejar
, ess
,
noness
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.