- plotAdded(mdl) creates an added variable plot for the whole model mdl except the constant (intercept) term.
- Let us say we were just modelling y as a function of x. It would be easy to visualize the model by plotting y against x (using a scatterplot for example) then plotting the model as a straight line.
- Now let us say we have multiple predictors, we can not just use a simple scatter plot anymore because we have a large number of predictors. We might think that we could scatter y against each of the predictors (let us call them x_i). This is certainly a good thing to do anyway, before modelling, which can be done using plotmatrix.
- However, the disadvantage of this is that the x_i are usually not independent, and what we really want to see is the effect of moving each individual x_i on the response y.
- Now let us move to the actual plot. This is an attempt to understand the effect of x_i on y, controlling for the other predictors.
- The steps to create the plot are the following:
Added variable plot: meaning of x axis "adjusted whole model"
조회 수: 15 (최근 30일)
이전 댓글 표시
I used plotAdded function to visualize the multilinear regression model, but I don't understand the meaning of the x-axis "adjusted whole model". What is the calculation to obtain x-axis values?
Thanks
댓글 수: 0
답변 (1개)
Vishesh
2022년 11월 29일
편집: Vishesh
2022년 11월 29일
(a) Regress x_i against all the other predictors
(b) Regress y against all predictors except x_i
(c) Scatter the residuals from (b) (y-axis) against the residuals from (a) (x-axis). This is the plot that
we see and what "adjusted" means, essentially just means "without x_i"
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Model Building and Assessment에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!