log_CT {COINr}R Documentation

Log-transform a vector

Description

Performs a log transform on a numeric vector.

Usage

log_CT(x, na.rm = FALSE)

Arguments

x

A numeric vector.

na.rm

Set TRUE to remove NA values, otherwise returns NA.

Details

Specifically, this performs a modified "COIN Tool log" transform: log(x-min(x) + a), where a <- 0.01*(max(x)-min(x)).

Value

A log-transformed vector of data, and treatment details wrapped in a list.

Examples

x <- runif(20)
log_CT(x)


[Package COINr version 1.1.7 Index]