*! version 1.0.0 09Dec2024

Title

pace -- Convert between minutes per mile and miles per hour

Syntax

Convert minutes per mile to miles per hour

mph
minutes per mile
[, dp(#)]

minutes per mile must be specified as minutes:seconds (e.g. 5:20)

Convert miles per hour to minutes per mile

mpm
miles per hour

dp(#) decimal places for displaying miles per hour pace; default is one decimal place

Description

The pace package converts between miles per hour and minutes per mile. This is intended to be a useful tool for runners
who may know their pace in one metric but would like to compute their pace in the other metric (such as when running on the treadmill
and the pace is presented only in miles per hour).

Options

dp(#) specifies the number of decimal places to display the miles per hour pace. Any integer specified outside of 0-3 will result
in a display of up to 8 decimal places. The default is 1 decimal place.

Examples

(1) Convert minutes per mile to miles per hour

. mph 6:00

. mph 5:20, dp(2)

. mph 4:40, dp(3)

(2) Convert miles per hour to minutes per mile

. mpm 10.0

. mpm 11.2

. mpm 12

Stored results

mph stores the following in r():

Scalars

r(mph) miles per hour

mpm stores the following in r():

Macro

r(mpm) minutes per mile

Citation of pace

pace is not an official Stata command. It is a free contribution
to the research community, like a paper. Please cite it as such:

Linden A. (2024). PACE: Stata module to convert between minutes per mile and miles per hour.

Authors

Ariel Linden

President, Linden Consulting Group, LLC

alinden@lindenconsulting.org