Login  Register

Re: GENLINMIXED EMMEANS don't agree with descriptives

Posted by Beckstead, Jason-2 on Mar 02, 2021; 2:49pm
URL: http://spssx-discussion.165.s1.nabble.com/GENLINMIXED-EMMEANS-don-t-agree-with-descriptives-tp5740214p5740235.html

Hi guys,
Thanks for your responses regarding GENLINMIXED. I believe that including the random intercepts in the model is necessary to account for the nested structure of the data (9 binary responses per subject) and which should adjust the standard errors for nonindependence in the data.
Also, because the DV is binary the binomial distribution with the logit link function is appropriate for conducting logistic regression. I think that specifying both of these options is necessary to obtain proper estimates of the 95% Cis for the cell means (which are proportions).
I also note that the estimated grand mean (also a proportion) does not equal that of the entire sample (as calculated using MEANS or DESCRIPTIVES).
At this point I am quite uneasy trusting the results from GENLINMIXED. Does anyone know of another way to estimate a multilevel logistic regression in SPSS.
Thanks,
Jason



_____________________________________________________________
Jason W. Beckstead, Ph.D.       
  Professor/Quantitative Methodologist
  University of South Florida College of Public Health
  13201 Bruce B. Downs Blvd., MDC56, Tampa, FL 33612, USA
  Statistical Editor, International Journal of Nursing Studies
  phone: +1.813.974.7667  fax: +1.813.974.4719          
  personal website:  http://personal.health.usf.edu/jbeckste/
  International Journal of Nursing Studies  http://www.elsevier.com/ijns
  NOTE new email: [hidden email]

-----Original Message-----
From: SPSSX(r) Discussion <[hidden email]> On Behalf Of Bruce Weaver
Sent: Saturday, February 27, 2021 9:28 PM
To: [hidden email]
Subject: Re: GENLINMIXED EMMEANS don't agree with descriptives

"If you don't estimate random effects the two procedures match."

Aha.  Good observation, Andy.  However, to one of Jason's points, the limits of some CIs are < 0 or > 1.  Using the small dataset Jason provided, and excluding random effects yields these EMMEANS:


Estimates
AC      WT      Mean    Std. Error      95% Confidence Interval
                                Lower   Upper
1       1       .167    .152    -.140   .473
        2       .333    .192    -.054   .721
        3       .333    .192    -.054   .721
2       1       .500    .204     .089   .911
        2       .667    .192     .279   1.054
        3       .667    .192     .279   1.054
3       1       .667    .192     .279   1.054
        2       .833    .152     .527   1.140
        3       .667    .192     .279   1.054



Andy W wrote

> Bruce, those should only change the standard error of the means, not
> the mean estimate itself (at least that is the case for data with only
> discrete dummy variables like here).
>
> Here I am not sure how SPSS treats the random effect in EMMEANS (sets
> it to
> 0 I imagine). If you don't estimate random effects the two procedures
> match.
>
> MEANS CHOICE BY AC BY WT.
>
> GENLINMIXED /DATA_STRUCTURE SUBJECTS=SUB  /FIELDS TARGET=CHOICE
> TRIALS=NONE OFFSET=NONE  /TARGET_OPTIONS DISTRIBUTION=BINOMIAL
> LINK=LOGIT REFERENCE=0  /FIXED EFFECTS= AC WT AC*WT USE_INTERCEPT=TRUE  
> /EMMEANS TABLES=AC*WT  /BUILD_OPTIONS TARGET_CATEGORY_ORDER=aSCENDING
> INPUTS_CATEGORY_ORDER=aSCENDING.
>
>
>
>
>
>
> -----
> Andy W

> apwheele@

> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fandre
> wpwheeler.wordpress.com%2F&amp;data=04%7C01%7Cjbeckste%40usf.edu%7C621
> d0b29623148ab8e2308d8db907101%7C741bf7dee2e546df8d6782607df9deaa%7C0%7
> C1%7C637500760713804811%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLC
> JQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=BsiihZ8u
> %2Bvs99Yn5W%2B%2FLGLWYdpjD5HGFNRVskWwdwaU%3D&amp;reserved=0
> --
> Sent from:
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fspssx
> -discussion.1045642.n5.nabble.com%2F&amp;data=04%7C01%7Cjbeckste%40usf
> .edu%7C621d0b29623148ab8e2308d8db907101%7C741bf7dee2e546df8d6782607df9
> deaa%7C0%7C1%7C637500760713814813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w
> LjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdat
> a=bGpI65uazTdwGqNAEdZWPfsbaEVsfwo3lfHVgpF5yYM%3D&amp;reserved=0
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (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





-----
--
Bruce Weaver
[hidden email]
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsites.google.com%2Fa%2Flakeheadu.ca%2Fbweaver%2F&amp;data=04%7C01%7Cjbeckste%40usf.edu%7C621d0b29623148ab8e2308d8db907101%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C1%7C637500760713814813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=LsDDhOHSsX0KMac9chrGOCCzgcK24RBXQZKZhyxRnm4%3D&amp;reserved=0

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fspssx-discussion.1045642.n5.nabble.com%2F&amp;data=04%7C01%7Cjbeckste%40usf.edu%7C621d0b29623148ab8e2308d8db907101%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C1%7C637500760713814813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=bGpI65uazTdwGqNAEdZWPfsbaEVsfwo3lfHVgpF5yYM%3D&amp;reserved=0

=====================
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 [EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe.

=====================
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