Blog posts

2025

The Correct Way to Use Chain-of-Thought Prompting: Avoiding Common Pitfalls

2 minute read

Published:

I recently attended an AI in Finance conference and was surprised to discover that many researchers are using chain-of-thought (CoT) prompting incorrectly. This powerful technique can significantly improve reasoning in LLMs—but only when implemented properly. Let’s clarify the right approach, especially in zero-shot settings.

2024

Improving Stata Newey-West Command Output

2 minute read

Published:

Stata’s built-in newey command does not output ( R^2 ) and adjusted ( R^2 ) by default. Notably, the ( R^2 ) from newey is the same as that from OLS. To facilitate exporting these statistics, particularly for use with reg2docx, I’ve created a custom command.

2023