![]() ![]() ![]() Let's open up the data set and first use the "set more off" command so that Stata does not drive us crazy by requiring us to click more every 5 seconds. As these data are coded, roughly 3/5 are White Non-Hispanic (57.71%) while the remaining 2/5 are youth of color (African-American/Hispanic) (42.29%). This particular data set is a subset of the NSDUH comprised of truant adolescents males between the ages of 12 and 17 years old (M age = 15.3, SD = 0.057). One Factor CFA The data for this example indeed, for all the examples in this session comes from National Survey of Drug Use and Health (NSDUH) which is really interesting nationally representative, cross-sectional substance use data for individuals from the ages of 12 and up. With these, we easily have enough information to look at an example and in doing so to become familiar with some more CFA/SEM syntax. ![]() These are the basic, basic concepts of Stata syntax for CFA/SEM. For example: sem (DEPRESS -> x1 x2 x3) or sem (x1 x2 x3 or x1 x2 x3), cov (e.x1*e.x2 e.x1*e.x3) or sem (DEPRESS -> x1 x2 x3), cov (e.x1*e.x2) cov (e.x1*e.x3) Again, the syntax here is relatively flexible as you have a variety of options of how you can specify that certain variables be allowed to correlate. You do this simply by specifying a latent construct (using CAPITAL letters) that is comprised of variables that are in the data set. Syntax Basics Basic CFA/SEM Syntax Using Stata: The most basic language is that which specifies the relationship between the latent constructs and the variables. (Note: you cannot use earlier versions of Stata for SEM Stata 12.1 is the first version that includes this method) Now take your seat, buckle up, and get ready for another ride on the nerd bus. Two Factor CFA To begin, we should start on a good note There is in my opinion really good news: In terms of conducting most analyses, the syntax for CFA/SEM in Stata 12.1 is far, far, far simpler than that of LISREL. The very basics of Stata CFA/SEM syntax 2. 1 Confirmatory Factor Analysis Using Stata 12.1 Three Main Points: 1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |