View source: R/transformations.R
optim.boxcox | R Documentation |
Find optimal Box-Cox transformation parameters
optim.boxcox(value, fac, shift = FALSE)
value |
Response variable in the data, e.g. |
fac |
Factor indicating groups of replicates, e.g.
|
shift |
Whether to use 2-parameter Box-Cox transformation. Input may be
|
Numeric vector with power and shift parameter in that order.
data <- subset(directAntivirals, experiment == 1)
optim.boxcox(data$effect, interaction(data$d1, data$d2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.