Please provide more information on your problem..
Strictly speaking, PCA does not involve a dependent variable. It is a way to choose linear combinations of variables that explain the most variance in the data.
You are probably talking about Principle Component Regression (PCR). Most people use PCR to mean "extract components from only the independent variables. You can read about how to run a principal component regression in SAS.
Although I have answered the question you asked, I want to point out that there are statistical drawbacks with this definition of principal component regression, The better approach, IMHO, is to use PROC PLS to perform partial least squares regression. PLS uses the independent AND the dependent variables to form the components that best explain the variation in BOTH the response and the explanatory variables.
It sure sounds to me like the original question leads to the answer of Partial Least Squares regression.
There's no need to perform PCA on the x-variables and a separate PCA on the y-variables, because these two PCAs might find results that are largely uncorrelated with one another. PLS overcomes this problem by finding dimensions of y that are well predicted (at least, as well as the data will allow) by dimensions of x.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.