Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Analytics
- /
- Stat Procs
- /
- How to use individual principal component scores to compute group scor...

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

🔒 This topic is **solved** and **locked**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 04-21-2018 09:25 PM
(1478 views)

Hello,

I have calculated principal components for hundreds of respondents with an average of ten variables using Proc Factor. I was trying to use these individual principal components to compute single group measure for each component.

For instance, I have got 10 schools and 20 students per school and I got two principal components for the 10 variables.

How can I use these two components for each school?

Can I sum up comp1 to get one school measure for component one and take the average?

Do the same thing for comp2 and get one measure for each schools?

Component A = (sum of all comp1 for each student in school X) / (Total students in school X)

Component B = (sum of all comp2 for each student in school X) / (Total students in school X)

Regards

Teketo

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

How can I use these two components for each school?

That's really up to you. What would you like to learn from the data? You haven't told us.

Principal components are often used to help visualize data in lower dimensional space so you can detect patterns or clustering. Is that what you want?

Tell us what you want to learn from this data.

Can I sum up comp1 to get one school measure for component one and take the average?

Do the same thing for comp2 and get one measure for each schools?

Component A = (sum of all comp1 for each student in school X) / (Total students in school X)

Component B = (sum of all comp2 for each student in school X) / (Total students in school X)

Yes you can do this. However, taken exactly as you have described the question of comparing school averages, this is a situation where you would use MANOVA, rather than Principal Components.

So again, we need to know what you want to learn from this data.

--

Paige Miller

Paige Miller

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

You could, I'm assuming the 'groups' are predetermined?

I'm assuming you would graph it first to see if the distribution made sense between your groups? I think you're trying to SCORE your data. PROC SCORE has an example of how to get the principle component scores for your data, a fully worked example.

@Teketo wrote:

Hello,

I have calculated principal components for hundreds of respondents with an average of ten variables using Proc Factor. I was trying to use these individual principal components to compute single group measure for each component.

For instance, I have got 10 schools and 20 students per school and I got two principal components for the 10 variables.

How can I use these two components for each school?

Can I sum up comp1 to get one school measure for component one and take the average?

Do the same thing for comp2 and get one measure for each schools?

Component A = (sum of all comp1 for each student in school X) / (Total students in school X)

Component B = (sum of all comp2 for each student in school X) / (Total students in school X)

Regards

Teketo

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

@Reeza wrote:

You could, I'm assuming the 'groups' are predetermined?

I'm assuming you would graph it first to see if the distribution made sense between your groups? I think you're trying to SCORE your data. PROC SCORE has an example of how to get the principle component scores for your data, a fully worked example.

PROC SCORE is not really needed here, one of the output data sets from PROC PRINCOMP will contain the PCA scores. The only time PROC SCORE would be useful is to compute scores on observations that were not in the original data set.

--

Paige Miller

Paige Miller

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

How can I use these two components for each school?

That's really up to you. What would you like to learn from the data? You haven't told us.

Principal components are often used to help visualize data in lower dimensional space so you can detect patterns or clustering. Is that what you want?

Tell us what you want to learn from this data.

Can I sum up comp1 to get one school measure for component one and take the average?

Do the same thing for comp2 and get one measure for each schools?

Component A = (sum of all comp1 for each student in school X) / (Total students in school X)

Component B = (sum of all comp2 for each student in school X) / (Total students in school X)

Yes you can do this. However, taken exactly as you have described the question of comparing school averages, this is a situation where you would use MANOVA, rather than Principal Components.

So again, we need to know what you want to learn from this data.

--

Paige Miller

Paige Miller

**Available on demand!**

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

What is ANOVA?

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.