# Hierarchical linear modelling (using SPSS)

Home Forums Default Forum Hierarchical linear modelling (using SPSS)

Viewing 4 posts - 1 through 4 (of 4 total)
• Author
Posts
• #4211
dani hugentobler
Participant

Hello!

I try to use hierarchical linear modelling, since I have a mixed within-between-subjects design and 5 time-varying covariates I would like to hold constant.

The syntax-file I uses looks as follows:

MIXED dv BY between within1 within2 WITH cov_1 cov_2 cov_3 cov_4 cov_5
/CRITERIA=CIN(95) MXITER(100) MXSTEP(5) SCORING(1) SINGULAR(0.000000000001) HCONVERGE(0,
ABSOLUTE) LCONVERGE(0, ABSOLUTE) PCONVERGE(0.000001, ABSOLUTE)
/FIXED=between within1 within2 between*within1 between*within2 within1*within2 between*within1*within2 | SSTYPE(3)
/METHOD=REML
/RANDOM=INTERCEPT cov_1 cov_2 cov_3 cov_4 cov_5 | SUBJECT(sub) COVTYPE(VC).

…and produces the following error-message:

Die endgültige Hesse-Matrix ist nicht positiv definit, obwohl sämtliche Konvergenzkriterien erfüllt sind.

I have two questions:
Is this the correct approach to test the impact of the 3 factors on the dependent variable holding 5 covariates constant?
What do I need to change in order not to get this error-message?

I would be very happy, if anybody could help!
dani.h.

#4214
dani hugentobler
Participant

hi dave,
thanks a lot for your message! i created the syntax-file myself.
– the outcome variable is dv
– the 3 factors are between, within1, and within2
– the covariates are cov_1 cov_2 cov_3 cov_4 cov_5
the goal of the analysis is to get the variance components in the dependent variable explained by the 3 factors, whereas cov_1 – cov_5 are treated as constant variables.
i would be very happy, if you could help!

#4213
Jeremy Miles
Participant

I’m guessing that that means that your hessian matrix is not positive definite, or can’t be inverted (same thing). That often means that your model is too complex, or that you don’t have a large enough sample.

You have a massive number of random factors, that is probably causing the problem. I think you need to start off with intercept on the random line. The covariates should be on the fixe factor line (I think – I’m not sure, ‘cos I don’t use SPSS for mixed models).

Don’t try to use the menus – they are a nightmare. Syntax is much more straightforward.

Don’t try the interactions yet.

I would start off with a simple model and build up by adding more parameters. Also, the criteria are all fine and can be left at their defaults. Start, for example, with:

MIXED dv
/METHOD=REML
/RANDOM=INTERCEPT | SUBJECT(sub) .

Jeremy

#4212

Dear Friend
I feel that your syntax is okay. The problem that you are facing may be due to a very high correlation between any two of your variables used to regress on dv. Please check.

Viewing 4 posts - 1 through 4 (of 4 total)
• The forum ‘Default Forum’ is closed to new topics and replies.