Login  Register

Re: GENLINMIXED EMMEANS don't agree with descriptives

Posted by Beckstead, Jason-2 on Feb 26, 2021; 5:10pm
URL: http://spssx-discussion.165.s1.nabble.com/GENLINMIXED-EMMEANS-don-t-agree-with-descriptives-tp5740214p5740224.html

Thanks Bruce. Below is small data and syntax.


* Encoding: UTF-8.
*-9 within-subjects conditions (3 x 3; AC x WT) & binary choice response.
*-below is hypothetical data from N=6 subjects.
*-At issue: estimated means do not agree with observed means.
DATA LIST FREE /SUB AC WT CHOICE.
BEGIN DATA.
1 1 1 0
1 1 2 0
1 1 3 0
1 2 1 0
1 2 2 1
1 2 3 1
1 3 1 1
1 3 2 1
1 3 3 1
2 1 1 0
2 1 2 0
2 1 3 1
2 2 1 0
2 2 2 0
2 2 3 1
2 3 1 0
2 3 2 1
2 3 3 1
3 1 1 0
3 1 2 1
3 1 3 0
3 2 1 1
3 2 2 1
3 2 3 0
3 3 1 1
3 3 2 1
3 3 3 0
4 1 1 0
4 1 2 0
4 1 3 0
4 2 1 1
4 2 2 1
4 2 3 1
4 3 1 1
4 3 2 1
4 3 3 1
5 1 1 0
5 1 2 0
5 1 3 0
5 2 1 0
5 2 2 0
5 2 3 0
5 3 1 0
5 3 2 0
5 3 3 0
6 1 1 1
6 1 2 1
6 1 3 1
6 2 1 1
6 2 2 1
6 2 3 1
6 3 1 1
6 3 2 1
6 3 3 1
END DATA.

VARIABLE LEVEL SUB AC WT (NOMINAL).
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
 /RANDOM USE_INTERCEPT=TRUE SUBJECTS=SUB
 /EMMEANS TABLES=AC*WT
 /BUILD_OPTIONS TARGET_CATEGORY_ORDER=aSCENDING INPUTS_CATEGORY_ORDER=aSCENDING.

MEANS CHOICE BY AC BY WT.

_____________________________________________________________
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: Wednesday, February 24, 2021 2:18 PM
To: [hidden email]
Subject: Re: GENLINMIXED EMMEANS don't agree with descriptives

Hello Jason.  If you provide a small illustrative data set (via DATA LIST) along with your GENLINMIXED and MEANS commands, others might find it easier to help you figure out what's going on.  (Folks who do not wish to take the time to generate such an example themselves may be willing to help if you provide it!)

Bruce



Beckstead, Jason-2 wrote

> Hello all,
>
> I am using GENLINMIXED procedure to analyze binary responses from a 3
> x 3 within-subjects design. Each subject provided 9 responses (coded
> 0, 1). I am running a multilevel logistic regression model specifying
> a binomial distribution and logit link function. I include a random
> intercept to account for the within-subjects data structure. The
> procedure executes fine without any errors or warnings.
> When I request the marginal means (and 95% C.I.s) with the /EMMEANS
> subcommand, however, the values provided by GENLINMIXED do not equal
> the values I get when I run MEANS procedure on the same data.
>
> Any help reconciling would be appreciated.
> Jason





-----
--
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%7Cdbecac2f949745e6fef308d8d8f8f66b%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C0%7C637497911082647083%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=e329noDG7J7AWC6ep8QLIeGID7lCmcNUQt2KRhomOmQ%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%7Cdbecac2f949745e6fef308d8d8f8f66b%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C0%7C637497911082647083%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=wp3j%2BV8IEoM3Q2z6vWIRyTCDejaBy84hJkf5wzybRyk%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