Diya,
Your examples are overly complex for your question. Here is a simple example to illustrate the concepts. You can then apply the concepts to your more complex models.
Suppose that you have one unmeasured latent variable that affects one measured latent variable with three indicators and that two observed covaraites have direct effects on the observed indicators. Here is a way to simulate data from such a model.
# Simulate model with unmeasured latent observed covaraites
require(lavaan)
simModelSyntax <- '
# Measurement Models (latent variables)
unmeasuredLatent =~ 0
measuredLatent =~ 1*x1 + .9*x2 + .8*x3 # indicators x1 to x3
# Regressions
measuredLatent ~ .5*unmeasuredLatent
x1 ~ .5*c1 + -.5*c2 # covariates c1 and c2
# Variances and disturbances
unmeasuredLatent ~~ 1*unmeasuredLatent
measuredLatent ~~ .5*measuredLatent
x1 ~~ .3*x1
x2 ~~ .3*x2
x3 ~~ .3*x3
c1 ~~ 1*c1
c2 ~~ 1*c2
# Covariances
c1 ~~ .5*c2
' # End model syntax
myData <- simulateData(model=simModelSyntax, sample.nobs=1000)
head(myData)
round(cov(myData),3) # covariance matrix rounded for viewing
Note that the input to lavaan is just the data for the observed variables. Were it otherwise, there would be no meaningful distinction between observed and unobserved variables. As such, the simulated data will not include values for the two latent variables. If you have an unmeasured latent variable that affects to other latent variables, you could also simulate this as an unexplained covariance between the two variables. An unmeasured latent variable that has no effects on any other variable in the model, such as in your second example, can be omitted entirely form the simulation because it does not impact the observed variables.
If you want to simulate data for latent variables, then change the model syntax to treat them as observed variables.
Also, as a general rule, a path diagram should represent every parameter in the algebraic model. Your diagrams are not strictly speaking path diagrams because they omit variances and disturbances. Explicit representation of the algebraic model is one thing that distinguishes path diagrams from more abstract graphical representations such as causal graphs and logic models.
HTH,
Keith
------------------------
Keith A. Markus
John Jay College of Criminal Justice, CUNY
http://jjcweb.jjay.cuny.edu/kmarkusFrontiers of Test Validity Theory: Measurement, Causation and Meaning.
http://www.routledge.com/books/details/9781841692203/