课程: Complete Guide to R: Wrangling, Visualizing, and Modeling Data

今天就学习课程吧!

今天就开通帐号,24,600 门业界名师课程任您挑!

Conducting a confirmatory factor analysis

Conducting a confirmatory factor analysis

- [Instructor] I want to finish our discussion of preparing data for analysis by giving you a very quick overview of a sophisticated and important procedure, confirmatory factor analysis or CFA. To do this, I'm going to be using a new package, and that is called Lavaan, which is a portmanteau for latent variable analysis, and it's the probably most common package in R for doing both confirmatory factor analysis and structural equation modeling or SCM. Let me load these packages here, and then I'm going to come down, and I'm going to use the same B5 data set. This is the big five personality factors and what we have there are 50 different variables that are designed to fall onto five groups or factors that measure these large scale personality attributes: extroversion, openness to experience, agreeableness and so on. I'm going to save that data to df, and then we're going to just check the variable names. And what you see is a whole bunch of variable names down here, E1, E2, E3, for…

内容