这个网址提供了解决方案。
https://www.stata.com/support/faqs/statistics/one-tailed-probabilities/
你可以先得到female coefficient的值,然后手动计算。要注意正负号。比如,检验H0: b>0
local p1 = 1 - tprob(15,1.6)/2 . di "The value of t(1.6) with 15 degrees of freedom is " 'p1'
你也可以编一个函数
. local t = 1.65 . local df = 22 . local qt = cond('t'<=0,tprob('df','t')/2,1-tprob('df','t')/2) . di 'qt' .94342544
详情请看链接。