MATLAB Answers

Linear regression outputs (regstat function)

12 views (last 30 days)
Vedi Ghahremanyans
Vedi Ghahremanyans on 24 Jan 2020 at 3:02
Commented: Vedi Ghahremanyans on 24 Jan 2020 at 14:14
Why does t value in tstat (using the regstat function) shows two outputs? It’s the same for the “beta” output. Why is there two outputs?

  0 Comments

Sign in to comment.

Accepted Answer

Ridwan Alam
Ridwan Alam on 24 Jan 2020 at 4:12
Edited: Ridwan Alam on 24 Jan 2020 at 4:14
The first one is for the constant coefficient (aka intercept term).
I believe you have only one predictor x, then your model is y ~ beta0 + beta1*x.
The two values correspond to these two coefficients beta0 and beta1.
Hope this helps.

  1 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags