Description Usage Arguments Value
This function shifts negative values in a data matrix. For each column vector the procedure is as follows:
A specific quantile is calculated from the vector
If the quantile is negative then its absolute value is added to the vector
Values that are still negative are truncated at 0
1 | shift_negative_values(m, quantile.prob)
|
m |
The data matrix |
quantile.prob |
The quantile probability to use |
Return the transformed data matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.