optim.boxcox {BIGL}R Documentation

Find optimal Box-Cox transformation parameters

Description

Find optimal Box-Cox transformation parameters

Usage

optim.boxcox(value, fac, shift = FALSE)

Arguments

value

Response variable in the data, e.g. "effect" column

fac

Factor indicating groups of replicates, e.g. interaction(d1,d2)

shift

Whether to use 2-parameter Box-Cox transformation. Input may be TRUE/FALSE or a numeric value indicating the shift parameter to use. If FALSE, shift parameter is set to zero.

Value

Numeric vector with power and shift parameter in that order.

Examples

  data <- subset(directAntivirals, experiment == 1)
  optim.boxcox(data$effect, interaction(data$d1, data$d2))

[Package BIGL version 1.6.6 Index]