How to create general linear model fit?

조회 수: 2 (최근 30일)
andrew
andrew 2014년 3월 13일
답변: Sean de Wolski 2014년 3월 13일
I created the following scatter plot:
gscatter(new_data.Income,new_data.ObesityRate,new_data.race,'bgrkm','osx*+',...
8,'on','Median Income','Obesity Percentage');
figure(gcf)
I was wondering how i can create a linear model fit with this? Note: I am trying to do a multiple linear regression.

답변 (1개)

Sean de Wolski
Sean de Wolski 2014년 3월 13일
doc glmfit
doc fitlm
A few places to start

Community Treasure Hunt

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

Start Hunting!

Translated by