BookmarkSubscribeRSS Feed
Davisonm1
Calcite | Level 5

I want to perform a PCA on my data. I have one dependent variable and 31 independent variables. How do I select the variables after knowing the number of the Principal Components

5 REPLIES 5
PaigeMiller
Diamond | Level 26

There is no such thing as a dependent variable in principal components analysis. So please explain further what you are trying to do here.

--
Paige Miller
Davisonm1
Calcite | Level 5
I have 32 variables (1 dependent and 31 independent variables) and want to
perform data reduction (using PCA if this is the correct technique) to
remain with a few variables to use in explaining the variation in dependent
variable. I want to perform multiple linear regression and multiple
nonlinear regression analysis and determine which of the two will best
explain the changes in the dependent variable
PaigeMiller
Diamond | Level 26

Definitely, this is a situation where you should use PLS and not PCA.

 

In PLS, you can determine the important variables in a number of ways, usually by looking at the loadings.

--
Paige Miller
Ksharp
Super User

Check PROC PLS , especially its example in documentation.

PaigeMiller
Diamond | Level 26

@Ksharp wrote:

Check PROC PLS , especially its example in documentation.


Good point. If you want to do something like Principal Components on the X-variables to predict a Y-variable(s), then PLS is the way to go.

--
Paige Miller

SAS Innovate 2025: Call for Content

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 732 views
  • 4 likes
  • 3 in conversation