Muthén & Muthén offer a MPLUS based syntax for calculating sample size and power on SEM, using a Monte Carlo simulation.
Is there any similar syntax available for R?
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.Sign up to join this community
You don't say which package in R you want to use.
You have two choices.
First, calculate your population covariance matrix, and then generate data using the mvrnorm() function in the MASS package. Then estimate your models using your favorite SEM package within R (sem, Lavaan, openMX, etc).
Second, Lavaan, which has a function called simulateData(). This lets you specify a model to generate in Lavaan language, which you can then estimate.