- 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"
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Vishesh
am 29 Nov. 2022
Bearbeitet: Vishesh
am 29 Nov. 2022
(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 Kommentare
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!