Loukas
Posts:
12
From:
London
Registered:
12/30/11


Liner Regression
Posted:
May 25, 2012 6:08 PM


Hi,
I was using excel to run a mulitiple linear regression analysis to predict a dependent variable Y from multiple independent variables. When I am trying to replicate the same regression using matlab " [b,bint,r,rint,stats] = regress(Y,X) "I am taking different results( coefficient, R2 )
Could you please tell me which is the most relevant function to replicate the regression? If you have experience using regression in matlab your ideas are welcome ?
My target is to create a multiple linear regression model (OLS) any code is more than welcome !!!!!
Thanks

