Docsity

Factor Analysis - Applied Multivariate Statistics - Assignment 5 | STAT 5600, Assignments of Descriptive statistics

Toggle sidebar
bg1
Stat 5600 — Applied Multivariate Statistics
Homework 5
Factor Analysis
Due Thursday, March 9
1. The MBA CAR dataset may be found on the website. This has ratings on 16 at-
tributes of 10 different cars from MBA students. There are some missing values, so
use read.table with the na.strings=‘‘.’’ option, and na.omit to remove the
incomplete observations. Save the car variable separately, and remove it from your
data matrix. Conduct a principal components analysis on this data. How many
components would you keep? Can you interpret the loadings on those components
meaningfully? Does rotation of the loadings for the components you are keeping
improve interpretability?
2. Now examine this same data with an exploratory factor analysis. How many factors
does it appear you should use? How do you interpret them?
3. Rerun your final EFA model with the option scores= ‘‘regression’’. Construct
a scatterplot or pairs plot of the scores, setting color or pch to the car ID variable.
Create a set of average scores for each car using the following code (assuming you
have the car id’s in variable car and the results of your EFA in MBA.efa):
bycar.score <- NULL
for (i in 1:10)
bycar.score <- rbind(bycar.score, apply(MBA.efa$scores[car==i,], 2, mean) )
Plot the average scores two variables at a time and use text or identify to label the
points. What do your plots tell you about the similarities and differences between the
10 car models?
4. The PSYCH TESTS dataset is a triangular correlation matrix for nine tests on 145
children, an expansion of the five-test data we looked at in class and in the text. Use
read.tri to import this matrix and use it to answer question 5.1.
5. Use the sem package to run a confirmatory factor analysis on the PSYCH TESTS
data to answer question 6.9.
6. Import the COGNITION dataset from the website and remove the observations with
missing values, as in homework 4 or problem 1 above. Use Table 4.1 to identify
the variables which are reverse-coded, and multiply those columns by -1, so that all
variables are measured in the same direction. For example, to reverse item 3, use
something like
cog[,3] <- -1*cog[,3] .
Use this modified data set and sem to answer question 6.8. (The modification is
necessary for part b. The sem function can fix loadings to be equal, but not to be
equal in absolute value but with different signs.)

Partial preview of the text

Download Factor Analysis - Applied Multivariate Statistics - Assignment 5 | STAT 5600 and more Assignments Descriptive statistics in PDF only on Docsity!

Stat 5600 — Applied Multivariate Statistics Homework 5 Factor Analysis Due Thursday, March 9

  1. The MBA CAR dataset may be found on the website. This has ratings on 16 at- tributes of 10 different cars from MBA students. There are some missing values, so use read.table with the na.strings=‘‘.’’ option, and na.omit to remove the incomplete observations. Save the car variable separately, and remove it from your data matrix. Conduct a principal components analysis on this data. How many components would you keep? Can you interpret the loadings on those components meaningfully? Does rotation of the loadings for the components you are keeping improve interpretability?
  2. Now examine this same data with an exploratory factor analysis. How many factors does it appear you should use? How do you interpret them?
  3. Rerun your final EFA model with the option scores= ‘‘regression’’. Construct a scatterplot or pairs plot of the scores, setting color or pch to the car ID variable. Create a set of average scores for each car using the following code (assuming you have the car id’s in variable car and the results of your EFA in MBA.efa):

bycar.score <- NULL for (i in 1:10) bycar.score <- rbind(bycar.score, apply(MBA.efa$scores[car==i,], 2, mean) )

Plot the average scores two variables at a time and use text or identify to label the points. What do your plots tell you about the similarities and differences between the 10 car models?

  1. The PSYCH TESTS dataset is a triangular correlation matrix for nine tests on 145 children, an expansion of the five-test data we looked at in class and in the text. Use read.tri to import this matrix and use it to answer question 5.1.
  2. Use the sem package to run a confirmatory factor analysis on the PSYCH TESTS data to answer question 6.9.
  3. Import the COGNITION dataset from the website and remove the observations with missing values, as in homework 4 or problem 1 above. Use Table 4.1 to identify the variables which are reverse-coded, and multiply those columns by -1, so that all variables are measured in the same direction. For example, to reverse item 3, use something like cog[,3] <- -1*cog[,3]. Use this modified data set and sem to answer question 6.8. (The modification is necessary for part b. The sem function can fix loadings to be equal, but not to be equal in absolute value but with different signs.)