log_GII {COINr}R Documentation

Log-transform a vector

Description

Performs a log transform on a numeric vector. This function is currently not recommended - see comments below.

Usage

log_GII(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 "GII log" transform, which is what was encoded in the GII2020 spreadsheet.

Note that this transformation is currently NOT recommended because it seems quite volatile and can flip the direction of the indicator. If the maximum value of the indicator is less than one, this reverses the direction.

Value

A log-transformed vector of data.

Examples

x <- runif(20)
log_GII(x)


[Package COINr version 1.1.14 Index]