_gunitchg: An egen function for unit conversion
Ulrich Kohler
German Stata Conference 2025 from Stata Users Group
Abstract:
This talk presents an egen function to convert units of measurements for length, areas, volumes, angles, masses, temperatures, and currency. The function allows one to convert many non-SI units (for example, inch, furlong, sunradius) to SI units (from pico to peta) or directly from a non-SI unit to another non-SI unit. Currencies are converted by calling the European Central Bank through an API. The conversion rate can be selected on a daily base or by an average of a specified period. German users may be relieved to realize that the function allows converting areas also into units of “Saarland”.
Date: 2025-04-26
References: Add references at CitEc
Citations:
Downloads: (external link)
http://repec.org/dsug2025/Germany25_Kohler.pdf
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:dsug25:04
Access Statistics for this paper
More papers in German Stata Conference 2025 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().