View source: R/FindBestTransform.R
FindBestTransform | R Documentation |
Use this function to find a constant value of alpha to be used for transforming count data. The power transformation parameter alpha
, which approximately fits transformed data to the Poisson log-linear model, is selected using a grid search within the interval [0, 1].
FindBestTransform(x, grid.length = 50)
x |
an n-by-p data frame or matrix of count data. Samples should be in the rows. |
grid.length |
how many distinct points of alpha should be searched within the interval [0, 1]? Default is 50. |
the value of alpha to be used within the power transformation.
This function is copied from PoiClaClu
package and modified to control the total number of grid search.
Dincer Goksuluk
set.seed(2128) counts <- generateCountData(n = 20, p = 10, K = 2, param = 1, sdsignal = 0.5, DE = 0.8, allZero.rm = FALSE, tag.samples = TRUE) x <- counts$x FindBestTransform(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.