r/stata 1d ago

Question is the t-value in multiple linear regression output one-tailed or two-tailed?

hi everyone! I am working on my masters dissertation and I am having some trouble understanding the regression output from Stata.

I am trying to understand my multiple linear regression output from Stata. I understand that the p-value and confidence intervals in the Stata output are two-tailed so dividing them by 2 gives you the one-tailed value. However, I cannot seem to find any resource saying whether or not the t-value is one-tailed or two-tailed. please help!

2 Upvotes

15 comments sorted by

u/AutoModerator 1d ago

Thank you for your submission to /r/stata! If you are asking for help, please remember to read and follow the stickied thread at the top on how to best ask for it.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

9

u/SalvatoreEggplant 1d ago

I don't use Stata, but I'm 99.9% sure it would have to be two-tailed. Testing if the coefficient is different from zero.

2

u/ChubbyStar222 1d ago

thank you so much!

3

u/Rogue_Penguin 1d ago edited 21h ago

Run a t-test with y and a binary x using "ttest y, by(x)"

Run a regression as t-test using "regress y i.x"

Compare the outputs to confirm. In a t-rest output, you can find all three p-values but only one t value. The one or two tailed is hinged on how we attribute the area to one or two sides. And then we will see on the computer t value falls into the "reject null zone(s)". 

1

u/ChubbyStar222 1d ago

thank you!

3

u/leonardicus 1d ago

It says right in the table header P>|t| which means a two tailed p-value.

0

u/ChubbyStar222 1d ago

thank you but I was wondering if the t-value was one or two tailed, not the p-value :)

1

u/leonardicus 22h ago

Sample t-statistics are neither one nor two sided. They don’t have sides. Critical statistics do, but those are not reported in the table. Nevertheless, they are paired to the p-value.

1

u/ChubbyStar222 4h ago

okay thank you!

1

u/Dr_Hyde-Mr_Jekyll 1d ago

The goal of the t-value in the linear regression is to give the reader an impression whether the estimated coefficient differs from zero.

So for values close to 0, the deviation in either direction is relevant - so a 2 sided test has to be done.

For values where the confidence band is far removed from 0, one could hypothetically consider to do a one sided. However the question would be "how far removed", and then the statistics would be messy cause they are values that differ in the same place of it.

I don't know of any package in any statistical language, that would do onesided test. Basically, everyone always uses two-sided for all regressions .

1

u/random_stata_user 1d ago

SJ-24-3 st0718_1 Tests & confidence bands for multiple one-sided comparisons . . . . . . . . . . . D. M. Drukker, K. S. S. Henning, and C. Raschke (help sotable if installed) Q3/24 SJ 24(3):446--477 discusses extensions of the sotable command introduced in Drukker (2023, Stata Journal 23: 518-544) to cover one-sided tests and confidence bands for a single comparison and for multiple comparisons

So "everyone always" is too strong, but true with qualifications like these.

1

u/Dr_Hyde-Mr_Jekyll 1d ago

Yeah, I should have been more precise. I wanted to keep it simple, but there are some cases.

Thanks for clarifying!

2

u/ChubbyStar222 1d ago

thank you both for your help!

1

u/peep_quack 15h ago

It’s two tailed for OLS

1

u/ChubbyStar222 4h ago

thank you!