logPercent: Percentage Change for Log Variables

View source: R/other_functions.R

logPercentR Documentation

Percentage Change for Log Variables

Description

This function makes sure that the level variable of interest increases/decreases, 10% i.e., while you are dealing with the log form.

Usage

logPercent(Variable, Percent)

Arguments

Variable

numeric. A numeric value or vector in logarithmic form.

Percent

numeric. A numeric value representing percentage increase in the level form.

Value

A value in the logarithmic form which makes sure that the level form value has increased by the specified percentage.

Author(s)

Omer Kara

Examples

x <- 100
percent <- 10
log(x)
logPercent(log(x), percent)
exp(logPercent(log(x), percent))


omerkara/okara documentation built on Nov. 21, 2023, 7:56 p.m.