The lavaan model syntax describes a latent variable model. Often, the user wants to see the covariance matrix generated by their model for diagnostic purposes. However, their data may have far more columns of information than what is contained in their model.
inspectSampleCov(model, data, ...)
The model that will be fit by lavaan.
The data frame being used to fit the model.
Other arguments to
One must supply both a model, coded with proper
a data frame from which a covariance matrix will be calculated. This function
sem, but doesn't fit the model, then uses
lavInspect to get the sample covariance matrix and meanstructure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.