How do I calculate the t-statistic of a regression when I already have the coefficients?
Show older comments
Hi,
I found the coefficients of a simple regression Y = aX1+bX2 using a maximum likelihood optimization. Now I would like to find the t-statistics of coefficient a and b.
The normal regress functions don't allow me to give them as an input though.
Any suggestions how I can do this?
thanks
Accepted Answer
More Answers (1)
Tom Lane
on 11 Jun 2013
0 votes
The t statistic is the ratio of the estimate to its standard error. If you can determine the standard error, you can take this ratio yourself.
However, least squares is the maximum likelihood method for a regression if the residuals are normally distributed. In that case you can let regress (or regstats or LinearModel) compute the coefficients and t statistics for you. If you have some other estimation method that is not least squares, you would need to determine the standard errors of those estimators.
2 Comments
Iris Li
on 3 Jun 2018
Hey did you solve you problem? I need to test significance of those coefficients.
Categories
Find more on Multiple Linear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!