This video provides a simple introduction to determining sample size and power for regression analysis using Monte Carlo simulations with the Lavaan and simsem packages in R.
Script file: https://drive.google.com/drive/folders/1fmQ-jgRnf5-Tblg5GseL2_kywpjStKUB?usp=drive_link
Beaujean (2014): https://openpublishing.library.umass.edu/pare/article/id/1361/
M&M (2002): https://www.statmodel.com/bmuthen/articles/Article_096.pdf