Description Usage Arguments Details Value References Examples
This function generates executable Mplus syntax which is discussed in Nagy et. al. (2009). the resulting Mplus syntax estimates the fit of the empirical angular locations of the six RIASEC dimensions, found based on their correlations, in the assumed circumplex array within the theory of vocational choice by John Holland (1997).
1 2 3 4 5 6 7 8 9 10 | Mplus_tsyn(
N,
Cor,
name = NULL,
test = "perfect",
dummyvorl = 1,
verbose = FALSE,
eol = "\r\n",
...
)
|
N |
number of observations for correlations as numeric |
Cor |
either an R matrix object with RIASEC correlations or the name of a correlation matrix, stored as a .dat text file, as character (see details). |
name |
optional a name (as character) for the Mplus syntax to be saved - default is the object name or the name given in parameter |
test |
either character (default test="perfect"), which tests against a perfect circumplex array, or a numeric vector with length = 6 giving the six angular locations (in radians) to test against. |
dummyvorl |
default is dummyvorl = 1, which results in the Mplus syntax given in Nagy et. al. (2009). !! don't change this !! if changed: "Alternativ dazu kann hier auch der Name einer zu verwendenden Dummyvorlage angegeben werden die dann eingelesen und verwendet wird. Es empfiehlt sich dringend die interne Syntaxvorlage zu verwenden - es sei den zum weiterentwickeln und Testen der Funktionen". |
verbose |
logical with default set to |
eol |
character see |
... |
additional parameters passed through |
more to come ...
resulting Mplus syntax will be saved in the current working directory
Holland, J.L. (1997). Making vocational choices. A theory of vocational personalities and work environments. Lutz, FL: Psychological Assessment Resources.
Nagy, G., Marsh, H. W., Luedtke, O., & Trautwein, U. (2009). Representing circles in our minds: Confirmatory factor analysis of circumplex structures and profiles. In T. Teo & M. S. Khine (Hrsg.), Structural Equation Modeling in Educational Research: Concepts and applications (S. 287 - 315). Rotterdam Boston Taipei: Sense Publishers.
1 2 3 4 5 6 7 8 9 | ## generating an example Mplus syntax referring to a R object with correlation data
data(example2) # loading fictional example correlation matrix
# generate and write Mplus input file in your workspace directory
Mplus_tsyn(N = 300, Cor = example2)
## Mplus syntax is now saved in the current workspace
################################################################
### clean up work directory
file.remove("example2.inp") # remove generated Mplus syntax from work dir.
file.remove("example2.dat") # remove generated cor. data from work dir.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.