Dear Statalists,
I would like to perform the following independent t-test formula for two quartile portfolios' returns, m_A and m_B are average returns individually for two quartile portfolios, S^2 is the common variance of the two quartile portfolios. Thus, I just wonder, do we have a Stata function code to run this formula or we have to calculate by hand? Many thanks for your time in advance!

I would like to perform the following independent t-test formula for two quartile portfolios' returns, m_A and m_B are average returns individually for two quartile portfolios, S^2 is the common variance of the two quartile portfolios. Thus, I just wonder, do we have a Stata function code to run this formula or we have to calculate by hand? Many thanks for your time in advance!
Comment