- 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"
10 ビュー (過去 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1207173/image.jpeg)
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!