Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fin_percent

Compute the percent change needed to return to the original value after percent off (or on).


Description

Determine the percent change needed to "undo" an initial percent change. Has a plot function as well. If an amount of $100 has 20% added, what percent do we need to drop it by to return to the original value?

fin_percent(20) yields $100 increased by 20% = $120 (Percent to reverse = -17%)

Usage

fin_percent(percent, value = 100, symbol = "$", digits = 2, plot = TRUE)

Arguments

percent

Change in percent (enter 10 for 10%, not 0.1)

value

Principal

symbol

value units (default = "$")

digits

Rounding of results (default 2 places)

plot

Whether to plot the result (default TRUE)

Value

  • new value and change required to return to baseline.

See Also

Other Miscellaneous Functions: deg2rad(), fin_NI(), fin_interest(), fin_valuation(), loadings.MxModel(), rad2deg(), umxBrownie()

Examples

# Percent needed to return to original value after 10% taken off
fin_percent(-10)

# Percent needed to return to original value after 10% added on
fin_percent(10)

# Percent needed to return to original value after 50% off 34.50
fin_percent(-50, value = 34.5)

umx

Structural Equation Modeling and Twin Modeling in R

v4.10.10
GPL-3
Authors
Timothy C. Bates [aut, cre] (<https://orcid.org/0000-0002-1153-9007>), Gillespie Nathan [wit], Michael Zakharin [wit], Brenton Wiernik [ctb], Joshua N. Pritikin [ctb], Michael C. Neale [ctb], Hermine Maes [ctb]
Initial release
2021-11-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.