1-2-2 Multilevel Mediation with Controls PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 Chris Stumpf posted on Monday, September 25, 2017 - 1:02 pm
Dear Drs. Muthen,

I'm trying to run a mixed-effects mediation analysis based on data gathered from a conjoint analysis. However, as soon as I include my control variables (toe ksfs lead compriv src inducomp), I get multiple error alerts.


A MATRIX COULD NOT BE INVERTED DURING THE H1 MODEL ESTIMATION. THE ESTIMATED BETWEEN COVARIANCE MATRIX IS NOT POSITIVE DEFINITE AS IT SHOULD BE. COMPUTATION COULD NOT BE COMPLETED. THE VARIANCE OF TOE APPROACHES 0. FIX THIS VARIANCE AND THE CORRESPONDING COVARIANCES TO 0, DECREASE THE MINIMUM VARIANCE, OR SPECIFY THE VARIABLE AS A WITHIN VARIABLE.
THE H1 MODEL ESTIMATION DID NOT CONVERGE. CHI-SQUARE TEST AND SAMPLE STATISTICS COULD NOT BE COMPUTED.

A MATRIX COULD NOT BE INVERTED DURING THE BASELINE MODEL ESTIMATION. THE ESTIMATED BETWEEN COVARIANCE MATRIX IS NOT POSITIVE DEFINITE AS IT SHOULD BE. COMPUTATION COULD NOT BE COMPLETED. THE VARIANCE OF TOE APPROACHES 0. FIX THIS VARIANCE AND THE CORRESPONDING COVARIANCES TO 0, DECREASE THE MINIMUM VARIANCE, OR SPECIFY THE VARIABLE AS A WITHIN VARIABLE.
THE BASELINE MODEL ESTIMATION DID NOT CONVERGE. THE CHI-SQUARE VALUE COULD NOT BE COMPUTED.


My syntax looks as follows:
 Chris Stumpf posted on Monday, September 25, 2017 - 1:05 pm
+++++++++++++++++++++++++++++
Variable: Names are
id person pea1 pea2 pea3 pea4 pea5 pea6 age sex edu prof income competence invest toe ksfs lead compriv src inducomp firmtype;

USEVARIABLES ARE
person
competence
invest
toe
ksfs
lead
compriv
src
inducomp
firmtype;

Cluster is person;
Within are
firmtype;


ANALYSIS: TYPE IS TWOLEVEL RANDOM;
MODEL:
%WITHIN%
firmtype;
competence ON firmtype (a);


%BETWEEN%
competence invest;
invest ON competence (b);
invest ON toe;
invest ON ksfs;
invest ON lead;
invest ON compriv;
invest ON src;
invest ON inducomp;


MODEL CONSTRAINT:
NEW(indb_med1);
indb_med1=a*b;


OUTPUT: TECH1 TECH8 CINTERVAL;

+++++++++++++++++++++++++++++++++

As it is probably apparent, my knowledge in this context is very basic therefore I am sort of desperate in this regard and any help is appreciated very much!
 Bengt O. Muthen posted on Monday, September 25, 2017 - 5:15 pm
We ask that posting be limited to one window. When you need to show code like this, send your question and full output to Support along with your license number.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: