Generate syntax for correlations between variables.
Arguments
- x
Object for which a method exists. If
xis an object of classtidy_sem, then correlations between all observed and latent variables in the data dictionary of that object are computed, by default. Ifxis a character vector, all elements of the vector are used.- ...
Optional additional character vectors of variables to be correlated. If
xis an object of classtidy_sem, then up to two vectors can be provided. Ifxis a vector, then one more optional vector can be provided. When no additional vectors of variable names are provided, only the correlations among the elements ofxare returned.