Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to find the value of the logarithm of a variable

    Dear all,

    I am dealing with currency in Indonesian rupiahs. When I take the logarithm of income, the mean is 11.80. I would like to provide a reference for this value in terms of USD, and therefore would like to know what approximately 11.80 is in terms of Indonesian rupiahs.

    Do you know how I can do this in Stata?

  • #2
    If you took the natural logarithm, then the inverse function is the exponential function. But note that \(exp(mean(log(x))) \neq mean(x)\). The former is a geometric mean (as opposed to an arithmetic mean).

    Code:
    . display exp(11.80)
    133252.35
    Last edited by Andrew Musau; 17 Apr 2023, 06:34.

    Comment


    • #3
      And with what Andrew provides, do the conversion here:

      HTML Code:
      https://www.xe.com/currencyconverter/
      Or, find the relevant value here and do the math (probably better as it's not subject to daily fluctuations).

      HTML Code:
      https://www.irs.gov/individuals/international-taxpayers/yearly-average-currency-exchange-rates

      Comment

      Working...
      X