This video shows you how to run Confirmatory factor analysis (CFA) in R using the Lavaan package. Cover modification indices and how to create a figure data and code can be found here- https://drive.google.com/drive/folders/1MByvh_hNGPGMEdhC7gGKkZWP_Mfl8GBT?usp=sharing