Mplus_tsyn {holland} | R Documentation |
Generating Mplus syntax for testing empirical RIASEC angular locations
Description
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).
Usage
Mplus_tsyn(
N,
Cor,
name = NULL,
test = "perfect",
dummyvorl = 1,
verbose = FALSE,
eol = "\r\n",
...
)
Arguments
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 |
Details
more to come ...
Value
resulting Mplus syntax will be saved in the current working directory
References
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.
Examples
## 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.