Contributor
Posts: 43

# a question regarding statistics

hi i have estimated regression using 'Proc REg' with' by' variable.

now i regression result for all the 'by variable'

i want to average the slope coefficient. well that is easy . but what about to the t statistic? can i simply average it too? and how to interpret it?

Super User
Posts: 23,700

## Re: a question regarding statistics

No, you can't just average the t-stat or p-value.

What are you actually trying to calculate?

Contributor
Posts: 43

## Re: a question regarding statistics

ok thanks for the reply , here is what i am trying to calculate.

i have weekly liquidity data for 500 stock over 7 years.

i am estimating an equation, which is something like this

Liq= a+ b1x + b2z+ b3d........+bnZ +e

now i have estimated this equation using proc reg .

with stockname as my by variable. so i have estimated this equation 500 times (number of stocks)

for reporting purpose i need to calculate the cross sectional average of coefficients (e.g average 500 b1). How do i report the t statistics for these averaged coefficients??? .

Contributor
Posts: 43

Posts: 5,523

## Re: a question regarding statistics

I agree with Reeza that averaging your coefficients is NOT the way to go. Instead, you should estimate single slope coefficients from all your stocks taken together. Drop the BY clause, switch from REG to GLM and use something like:

proc glm data=myData;

class stockName;

model liq = stockName x z d / solution;

run;

This will estimate a separate intercept for each stock and single slopes (with T statistics) for all your parameters (x, z, d, etc)

PG

PG
Super User
Posts: 23,700

## Re: a question regarding statistics

If you have time series data, data over 7 years, then its likely you should be doing some sort of time series analysis rather than proc reg or GLM in my opinion.

Contributor
Posts: 43

## Re: a question regarding statistics

but this procedure has been used in alot of recent papers in top journals, and they just average out the slope coefficients, however how they go about tstatistics, i am not sure and i cant understand

Super User
Posts: 23,700

## Re: a question regarding statistics

That explains why the market crashed

Contributor
Posts: 43

## Re: a question regarding statistics

haha nice one :smileysilly: but you know the problem is not with estimtaion, because this estimation becuase this is just an intermediate estimation before the real model, however we cannot report the result of 500 regression, so just for reporting purpose this has to be done, and i just cant figure out how they have done or how to report, if you want i can send you a link of the orignal paper, sorry to bother but any help wpold be really appreciated

Super Contributor
Posts: 543

## Re: a question regarding statistics

It could help to see the paper you are referring to.

Maybe there is some misunderstanding on the methodology used?

Contributor
Posts: 43

## Re: a question regarding statistics

here let me attach the paper , see table2 on page 266, the author has just calculated equally weighted average of the coefficients

Super User
Posts: 23,700

## Re: a question regarding statistics

On pg 266, that is time series analysis, not just regression analysis. Because there is seasonal adjustment and time adjustments.

You can implement a similar model in proc reg, but have to make sure your have the appropriate terms in the model as well.

Contributor
Posts: 43

## Re: a question regarding statistics

yes reeza i have all the appropriate terms, i.e lags and everything, but do you know how the author has summarized the results in table2, specially regarding the tstatistic, as he has averaged the coefficients cross sectionally, but how do i report t statistics??

Super User
Posts: 23,700

## Re: a question regarding statistics

I'm not sure, mostly because I don't want to read the paper thoroughly.

I would suggest contacting the authors directly. The version you attached doesn't have the author contacts, but usually when I've had articles published the author contacts are included, as well as the institutions.

Occasional Contributor
Posts: 17

## Re: a question regarding statistics

I'm not sure how the author came up with the average t-statistic. I agree that it is a bad practice averaging t-statistics. If you have the opportunity to recommend a different solution, I would probably go for something like "% of regressions with a significan p-value". It's a way to say, for each independent variable, of the n "by groups", x% had a significan p-value.

Discussion stats
• 20 replies
• 1410 views
• 3 likes
• 6 in conversation