필터 지우기
필터 지우기

regression on dummy variables

조회 수: 2 (최근 30일)
Kyle Zarmair
Kyle Zarmair 2014년 9월 20일
답변: the cyclist 2014년 9월 21일
Hi,
I need to run a cross-sectional regression on several dummy variables (there are only dummy variables in my regression). I know that we can use the '\' to solve the for the 'b' in the following equation A*b=c --> b=A\c where 'b' represents the betas from my regression. however the betas produced from this result are all 'NaN'. Is the a particular reason for this? Can I use the '\' function to solve for this particular problem or must I use a different built in function.
Thanks!

답변 (1개)

the cyclist
the cyclist 2014년 9월 21일
If you have the Statistics Toolbox, you can use the regress() function.

Community Treasure Hunt

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

Start Hunting!

Translated by