TITLE: General SEM of Job Satisfaction and Commitment with Categorical Variables, Missing Values, Clustered Data DATA: FILE IS “C:\Mplus\jobdata.dat”; MODEL: The new ON statement indicates that JOBSATIS BY sat1 sat2 sat3 ; JOBCOMM is also regressed on LIKESUP BY sup1 sup3; gender. Mplus gender is an – “knows” JOBCOMM BY com1 - com3; observed variable because it is named sat1 WITH sat2; in the VARIABLE command, and com1 WITH com3; because it is not measured BY any JOBCOMM ON JOBSATIS; other variables. JOBCOMM ON LIKESUP; JOBCOMM ON gender; 13. General SEM with Latent and Observed Predictors and a Mediational Hypothesis General SEM C. In the following SEM, Jobsat has both direct and indirect effects on Jobcomm. Indirect effects are through LikeSupr. Place Figure 6 about here TITLE: General SEM of Job Satisfaction and Commitment with Categorical Variables, Missing Values, Clustered Data, and Mediation DATA: FILE IS MODEL: The new ON statement indicates that JOBSATIS BY sat1 sat2 sat3 ; JOBSATIS is regressed on LIKESUP BY sup1 sup3; LIKESUPR. JOBSATIS is both – JOBCOMM BY com1 - com3; predicted and a predictor in the sat1 WITH sat2; The implication is that the effects of com1 WITH com3; LIKESUP on JOBCOMM are JOBCOMM ON JOBSATIS; partially mediated by its effect on JOBCOMM ON LIKESUP; JOBSATIS. JOBCOMM ON gender; JOBSATIS ON LIKESUPR; Figure 1. Measurement Model A
TITLE: General SEM of Job Satisfaction and Commitment with Categorical Variables, Missing Values, Clustered Data DATA: FILE IS “C:\Mplus\jobdata.dat”; MODEL: JOBSATIS BY sat1 sat2 sat3 ; LIKESUP BY sup1 – sup3; JOBCOMM BY com1 - com3; sat1 WITH sat2; com1 WITH com3; JOBCOMM ON JOBSATIS; JOBCOMM ON LIKESUP; JOBCOMM ON gender; The new ON statement indicates that JOBCOMM is also regressed on gender. Mplus “knows” gender is an observed variable because it is named in the VARIABLE command, and because it is not measured BY any other variables. 13. General SEM with Latent and Observed Predictors and a Mediational Hypothesis General SEM C. In the following SEM, Jobsat has both direct and indirect effects on Jobcomm. Indirect effects are through LikeSupr. Place Figure 6 about here TITLE: General SEM of Job Satisfaction and Commitment with Categorical Variables, Missing Values, Clustered Data, and Mediation DATA: FILE IS MODEL: JOBSATIS BY sat1 sat2 sat3 ; LIKESUP BY sup1 – sup3; JOBCOMM BY com1 - com3; sat1 WITH sat2; com1 WITH com3; JOBCOMM ON JOBSATIS; JOBCOMM ON LIKESUP; JOBCOMM ON gender; JOBSATIS ON LIKESUPR; The new ON statement indicates that JOBSATIS is regressed on LIKESUPR. JOBSATIS is both predicted and a predictor in the The implication is that the effects of LIKESUP on JOBCOMM are partially mediated by its effect on JOBSATIS. Figure 1. Measurement Model A
SEMMplusSyntax.docx