Abstract: | Yuan and Hayashi (2010) Yuan, K.-H. and Hayashi, K. 2010. Fitting data to model: Structural equation modeling diagnosis using two scatter plots. Psychological Methods, 15: 335–351. Crossref], Web of Science ®] , Google Scholar] introduced 2 scatter plots for model and data diagnostics in structural equation modeling (SEM). However, the generation of the plots requires in-depth understanding of their underlying technical details. This article develops and introduces an R package semdiag for easily drawing the 2 plots. With a model specified in EQS syntax, one only needs to supply as few as 2 parameters to generate the 2 plots using the semdiag package. Two examples are provided to illustrate the use of the package. Multiple figures are used to explain the elements of data and model diagnostics. Advice on selecting proper estimation methods following the diagnostics is also given. |