powered by
Performs a log transform on a numeric vector.
log_CT(x, na.rm = FALSE)
A log-transformed vector of data, and treatment details wrapped in a list.
A numeric vector.
Set TRUE to remove NA values, otherwise returns NA.
TRUE
NA
Specifically, this performs a modified "COIN Tool log" transform: log(x-min(x) + a), where a <- 0.01*(max(x)-min(x)).
log(x-min(x) + a)
a <- 0.01*(max(x)-min(x))
x <- runif(20) log_CT(x)
Run the code above in your browser using DataLab