Changing the Parameters names in regression output?

조회 수: 8 (최근 30일)
Anders Lindström
Anders Lindström 2017년 2월 20일
답변: Anders Lindström 2017년 2월 24일
Hello fellow coders,
I am new to Matlab, and I have been scratching my head over this issue for some time: Is it possible to change the parameter names in the regression output from the generic 'x1,x2,etc...', so that they corresponds to the name of the input variables from a table (or separate variables(vectors))? This would be very helpful to make the regression output "readable".
Best regards
/Anders Lindström
  댓글 수: 1
the cyclist
the cyclist 2017년 2월 20일
There are many regression methods in MATLAB. Which one are you using? Better yet, upload a small bit of code that shows the output you are trying to manipulate.

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

채택된 답변

Anders Lindström
Anders Lindström 2017년 2월 24일
Hey guys,
Thank you both for your answers, but I could solve the problem myself. I solved it by converting the table/matrix into a Dataset. In that way the output is displayed the way I want.
Regards
/Anders Lindström

추가 답변 (1개)

Abel Babu
Abel Babu 2017년 2월 24일
Hi Anders,
If you are using the ' fitlm ' function, it uses a parameter by the name ' modelspec ', which can be used to give model specification. One method of giving the specification is by using the name of the features themselves. You can read about it here :
The notations are to be given using Wilkinson Notation.
Here is an example of the linear regression workflow that makes use of the same notations: https://in.mathworks.com/help/stats/linear-regression-workflow.html
Abel

카테고리

Help CenterFile Exchange에서 Multiple Linear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by