How do I calculate the t-statistic of a regression when I already have the coefficients?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Tom Lane
il 11 Giu 2013
0 voti
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 Commenti
Iris Li
il 3 Giu 2018
Hey did you solve you problem? I need to test significance of those coefficients.
Categorie
Scopri di più su Multiple Linear Regression in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!