Level 2 residuals SPSS Mixed

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Level 2 residuals SPSS Mixed

Tino Nsenene
Hello,

I am estimating a twolevel regression model in SPSS using the mixed procedure
and would like to plot the level-2 residuals; however, I only get residuals
for the observations at level-1.
Can anyone help me how to obtain level-2 residuals in SPSS mixed?

Many thanks,
tino

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Level 2 residuals SPSS Mixed

Ryan
Tino,

Add the following sub-command to your MIXED syntax: 

/SAVE FIXPRED 

Then use COMPUTE:

COMPUTE residual_level_2 = <insert dependent variable here> - FIXPRED_1.
EXECUTE.

Ryan


On Wed, Mar 19, 2014 at 1:32 PM, Tino Nsenene <[hidden email]> wrote:
Hello,

I am estimating a twolevel regression model in SPSS using the mixed procedure
and would like to plot the level-2 residuals; however, I only get residuals
for the observations at level-1.
Can anyone help me how to obtain level-2 residuals in SPSS mixed?

Many thanks,
tino

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

Reply | Threaded
Open this post in threaded view
|

RE: Level 2 residuals SPSS Mixed

MaxJasper
In reply to this post by Tino Nsenene

Residuals = data – estimated mean

Calculate and then plot.

 

I am estimating a twolevel regression model in SPSS using the mixed procedure
and would like to plot the level-2 residuals; however, I only get residuals
for the observations at level-1.
Can anyone help me how to obtain level-2 residuals in SPSS mixed?

Many thanks,
tino


Reply | Threaded
Open this post in threaded view
|

Re: Level 2 residuals SPSS Mixed

Ryan
In reply to this post by Ryan
Tino,

Actually, the name produced for the predicted fixed values is FXPRED_1, not FIXPRED_1. With that in mind, assuming your dependent variable name is y, then:

COMPUTE residual_level_2 = y - FXPRED_1.
EXECUTE.

Want more details about the two types of predicted values to which you are indirectly referring? See a message I posted a while back here:


HTH.

Ryan


On Wed, Mar 19, 2014 at 2:28 PM, Ryan Black <[hidden email]> wrote:
Tino,

Add the following sub-command to your MIXED syntax: 

/SAVE FIXPRED 

Then use COMPUTE:

COMPUTE residual_level_2 = <insert dependent variable here> - FIXPRED_1.
EXECUTE.

Ryan


On Wed, Mar 19, 2014 at 1:32 PM, Tino Nsenene <[hidden email]> wrote:
Hello,

I am estimating a twolevel regression model in SPSS using the mixed procedure
and would like to plot the level-2 residuals; however, I only get residuals
for the observations at level-1.
Can anyone help me how to obtain level-2 residuals in SPSS mixed?

Many thanks,
tino

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD