t values for regression model coefficients

I used the regress function to model fit in the form of y = a1+a2*x2+a3*x3. How do I find the standard deviations and the t-values for the coefficient parameters a1, a2, and a3 in MATLAB?

 Respuesta aceptada

the cyclist
the cyclist el 3 de Mzo. de 2011

0 votos

From the documentation "help regress":
[B,BINT,R,RINT,STATS] = REGRESS(Y,X) returns a vector STATS containing, in the following order, the R-square statistic, the F statistic and p value for the full model, and an estimate of the error variance.

2 comentarios

Amanda
Amanda el 4 de Mzo. de 2011
Thanks for the suggestion. However, when I tried this in MatLab, I only get three values in my STATS vector. I can't tell which three of the 4 values listed I am actually getting.
the cyclist
the cyclist el 4 de Mzo. de 2011
I find this odd, to be sure. My cut&paste from the documentation is from version R2010b, and I get four values in the stats output.
Are you using an older version? If so, you should rely on your version of the documentation, which I hope would accurately correspond to what you are seeing in output. If not, that is something to bring up with MathWorks suppor.t

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Linear and Nonlinear Regression en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Mzo. de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by