MATLAB: Multiple linear regression analysis using regression learner app in matlab
MATLABregression
How to get coefficients and constant after doing multiple linear regression analysis in matlab using regression learner app
Best Answer
Hi,
You may refer to theExport Regression ModelStep of training a Linear Regression Model. This will store the variables containing the parameters into MATLAB Workspace. Information regarding coefficients andconstantwill be stored intrainedModel.LinearModel.Coefficientsfield in thetrainedModelvariable. This format is only valid if Linear Regression method is usedin the RegressionLearner App. Different kinds of parameters will come into picture if some other algorithm is used such asRegression Trees,Support Vector Machinesetc.
Currently Classification Learner App hasDecision Treesfor multi-class classification problems. As you mentionedmnrfitdoes the Multinomial Logistic Regression, you may useglmfitwith corresponding distribution for doing the same. You can find an examplehere. For more Information you maytakealooktothe following documentation.
Best Answer