- Financial statistics. A new suite of commands is available for analysis of financial data. Now you can easily compute returns from prices. Or determine optimal allocation of assets in your portfolio by minimizing variance or maximizing the return-to-risk ratio. Estimate value at risk (VaR) before making important financial decisions. Fit a capital asset pricing model (CAPM), and explore how asset returns relate to the market. Or use a Fama–MacBeth regression to estimate the price of risk. The financial statistics suite comprises the following commands:
| COMMAND | DESCRIPTION |
| finreturns | Generate financial returns |
| finportfolio | Financial portfolio selection |
| finsummarize | Financial summary statistics |
| finvalrisk | Value at risk |
| finregress capm | Capital asset pricing model (CAPM) |
| finregress fmb | Fama–MacBeth regression |
These new commands complement many existing data management and time-series commands that are useful for analysis of financial data. You can learn more about analyzing financial data in Stata in the new Financial Statistics Reference Manual.
© Copyright 1996–2026 StataCorp LLC. All rights reserved.
- Convert PDF to plain text. Perhaps you need to extract content that can be easily parsed for data mining or efficient processing by large language models. Or you may need the content from your PDF in a smaller file size that can quickly be loaded and processed. With the new pdf2txt command, you can easily convert your PDF to plain text format.
- Download business calendars. With the new bcal webcopy command, you can download a business calendar for a common stock exchange such as the S&P 500, NASDAQ, or NYSE. These calendars are customized for recent years and are useful for teaching and analyzing modern data that are collected only on the trading days of the selected exchange. They are also easily extended to accommodate any date range corresponding to your own data.