If you like automating your Stata output, you have probably struggled with how to format P-values so they display in a format that is common in journals, namely: If P>0.05 and not close to 0.05, P has an equals sign and you round at the hundredth place E.g., P=0.2777 becomes P=0.28 If P is close …