Mplus_esyn: Generating Mplus syntax for empirical RIASEC angular...

Description Usage Arguments Details Value References Examples

View source: R/Mplus_esyn.R

Description

This function generates executable Mplus syntax which is discussed in Nagy et. al. (2009). the resulting Mplus syntax estimates the angular locations of the six RIASEC dimensions, based on their correlations, in the assumed circumplex array within the theory of vocational choice by John Holland (1997).

Usage

1
2
3
4
5
6
7
8
9
Mplus_esyn(
  N,
  Cor,
  name = NULL,
  dummyvorl = 1,
  verbose = FALSE,
  eol = "\r\n",
  ...
)

Arguments

N

number of observations for correlations as numeric

Cor

an R matrix object with RIASEC correlations.

name

optional a name (as character) for the Mplus syntax to be saved - default is the object name or the name given in paramter Cor as character (with ending changed to '.inp').

dummyvorl

default is dummyvorl = 1, which results in the Mplus syntax given in Nagy et. al. (2009). !! don't change this !! if changed: "Alternatively, the name of an external dummy template to be used can also be specified here, which is then read in and used. It is strongly recommended to use the internal syntax template, since the use of an external dummy template cannot be documented further here.".

verbose

logical with default set to verbose=FALSE; if set to verbose=TRUE the resulting Mplus syntax is additionally printed on the console.

eol

character see write.table to control the generation of correct line endings in text files on different operating systems.

...

additional parameters passed through

Details

by default the Mplus syntax file is written in the current working directory.

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

1
2
3
4
5
6
7
8
9
# generating an example Mplus syntax refering to a R object 
# with correlation data 
data(example1) # loading fictional example correlation matrix
Mplus_esyn(N = 300, Cor = example1)
## Mplus syntax is now saved in the current workspace
################################################################
### clean up work directory
file.remove("example1.inp") # remove generated Mplus syntax from work dir.
file.remove("example1.dat") # remove generated cor. data from work dir.

holland documentation built on Sept. 5, 2021, 5:08 p.m.