optim.boxcox: Find optimal Box-Cox transformation parameters

View source: R/transformations.R

optim.boxcoxR 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))

openanalytics/BIGL documentation built on July 7, 2023, 7:49 a.m.