Fitglm error on app designer

조회 수: 1 (최근 30일)
Jonathan Moorman
Jonathan Moorman 2020년 7월 13일
댓글: Anirudh Singh 2020년 7월 22일
Hi! I'm working on app designer, and trying to make a logistic binomial model of the probability of yHat as a function of Factored Crack Length, using a two-way interactions model. My code is below:
Data = [FactoredLengthColm, yHatColm];
tbl = array2table(Data);
modelspec = 'yHat ~ FactoredLenth';
mdl = fitglm(tbl,modelspec,'Distribution','binomial')
I continue to reviece the errors: .... Am I missing something in my code?
  댓글 수: 1
Anirudh Singh
Anirudh Singh 2020년 7월 22일
According to the error, this error comes because "modelspec " does not able to find out 'yHat ~ FactoredLenth'.
I thought you have to use "FactoredLenthColm" instead of "FactoredLenth" same for "yHat" you need to use "yHatColm".
I hope this might resolve the error.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by