How do you regress out nuisance variables from response variable and save the residuals for further regression analysis?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I’m trying to do a multiple regression, and I have variables of interest and nuisance variables. All the variables (independent and dependent) are continuous; they are all column vectors. I would like to fully regress out the nuisance variables before doing the multiple regression with the variables of interest. So I would like to remove the variance in the response variable that can be explained by the nuisance variables, and save the residuals of the response variable as a new variable. Then do the multiple regression with the variables of interest and the response residuals variable. How can I do the first regression (with the nuisance variables) and save the residuals as a new variable?
1 Kommentar
Antworten (0)
Siehe auch
Kategorien
Mehr zu Linear and Nonlinear Regression 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!