Fitglm error on app designer

1 visualizzazione (ultimi 30 giorni)
Jonathan Moorman
Jonathan Moorman il 13 Lug 2020
Commentato: Anirudh Singh il 22 Lug 2020
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 Commento
Anirudh Singh
Anirudh Singh il 22 Lug 2020
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.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by