Curve fitting with more than 3 variables

조회 수: 35 (최근 30일)
Tania
Tania 2014년 6월 4일
댓글: John D'Errico 2018년 12월 2일
Hi! I am doing curve fitting with matlab at the moment and would like to do it with more than 3 variables.Is that possible and how can i do it? please see the screenshot, I can not add any further variables there. Thank you!
  댓글 수: 1
Mahdi
Mahdi 2014년 6월 4일
Do you mean you want to do it in a higher dimension than 3D? Or more polynomial coefficients?

댓글을 달려면 로그인하십시오.

채택된 답변

dpb
dpb 2014년 6월 4일
That's correct; the cftool GUI is limited to curves or surfaces.
You can define other more general models you wish with with either GeneralizedLinearModels tools in the Statistics Toolbox (under 'regression') or can always write the normal equations directly and use the backslash ("\") operator to solve.
Details on what your inputs are and the desired model could lead to more specific responses.

추가 답변 (3개)

dpb
dpb 2014년 6월 5일
편집: dpb 2014년 6월 5일
Don't know about web sites; the Matlab doc starts under
doc
Open the Statistics Toolbox section, select "Regression and Classification" and then "Parametric Regression". Start at the bottom with the Concepts section and work your way thru to the Linear Models which is probably all you need.
ADDENDUM:
There's a little more to it than the following, but the general idea for indicator variables is easily seen in the following
For setting up contrasts between more locations, there are some restrictions on the dummy encoding. Any good text on regression will address it.
  댓글 수: 3
dpb
dpb 2014년 6월 13일
"More", I don't know would be a good way to put it; it's an alternative choice, yes. I really have no direct experience in the specific area of regression trees, sorry.
Don't know you've anything to lose by trying both and seeing which does a better job for your purposes on the data you have. You'll want to avoid making any generic conclusions from just a sample dataset results, obviously...
Tania
Tania 2014년 6월 13일
ok great, thank you for your answer. I might try both.

댓글을 달려면 로그인하십시오.


Tania
Tania 2014년 6월 7일
Thanks thats great!
  댓글 수: 3
essa mohammed
essa mohammed 2017년 12월 12일
????
John D'Errico
John D'Errico 2018년 12월 2일
I unaccepted this self answer, and accepted the Answer from dpb instead.

댓글을 달려면 로그인하십시오.


ehsan brtn
ehsan brtn 2018년 12월 2일
still i didn't find the answer

카테고리

Help CenterFile Exchange에서 Historical Contests에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by