cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
RMSJaguar755
Level I

How to Properly Specify a Mixed Model

Hello,

I am currently analyzing EEG beta power data using a mixed model in JMP and would like to ensure that I am specifying the model correctly. My dataset is structured in long format, where each row represents a single observation with the following variables:

 

SubjectGroupStimulusElectrodeTimePower
1AXCz-0.41.23
1AXCz-0.21.45
1AXPz-0.40.56
..................
1AYCz-0.42.91
..................
2BXCz-0.41.31
..................
11BYPz-0.22.34

I would like to perform an analysis where:

  • Fixed effects include Group, Stimulus, and Electrode, along with their interactions.

Questions:

How should I correctly specify the repeated structure in JMP’s mixed model?

I would appreciate any guidance on how to properly structure this analysis in JMP. Thank you!

4 REPLIES 4
Victor_G
Super User

Re: How to Properly Specify a Mixed Model

Hi @RMSJaguar755,

 

Welcome in the Community !
Did you already had a look at JMP Help section related to repeated measures modeling : Example of Repeated Measures ?

It seems your data format is very close to the one from the example displayed in the JMP Help, where response is measured and repeated at different time points.
I'm not sure about the use of "Power" in your context, but it could be used as a covariate and/or random effect.

 

If you need more help/guidance, could you provide more details (and possibly an anonymized dataset to test some modeling approaches), so that other members of the Community can join this discussion and provide insights ?

Victor GUILLER

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)
RMSJaguar755
Level I

Re: How to Properly Specify a Mixed Model

以下のような文面で返信するとよいでしょう。


Thank you for your rapid response! I have checked the JMP Help section on repeated measures modeling, and I believe my data structure is similar to the example provided there.

To clarify my analysis:

  • I have EEG beta-band power data of two groups (Responders, non-Responders).
  • Each subject was presented with 3 types of stimuli.
  • EEG was recorded from 32 electrodes.
  • Beta power was measured at 6 time points (-0.4s, -0.2s, 0s, 0.2s, 0.4s, 0.6s).

My goal is to perform a mixed model analysis treating Subject as a repeated measure, while analyzing the effects of Group (Responder/non-Responder), Stimulus (S1, S2, S3), and Electrode (Cz, Oz, P3, P4) on beta power over time. I am unsure about the best way to specify the repeated structure in the mixed model framework in JMP.

I have attached a simulated dataset in long format for reference.

 

How should I structure the mixed model appropriately in JMP? Should I treat Time as a repeated measure and include Subject as a random effect? I would appreciate any guidance on setting up the model effects correctly.

Thank you for your help!

statman
Super User

Re: How to Properly Specify a Mixed Model

Please post your data set in a JMP table.

"All models are wrong, some are useful" G.E.P. Box
statman
Super User

Re: How to Properly Specify a Mixed Model

To clarify a few things:

1. A mixed model is a condition where you are combining fixed and random effects.

2. In your case, your response is Power, your fixed effects are the effects associated with Group, Stimulus and Electrode and your random variable is Time?  I'm not sure Time is a random effect here in terms of estimable and assignable in the model.  What I question is whether Time is independent of the fixed effects.  Do the fixed effects change between the different Times?  If not, then Time is not independent of the fixed effects The fixed effects were constant when two different data points were gathered in time.  In this case, you would have repeated measures.  Repeated measures do not have DF's.  They can be assessed (by looking at the within treatment variation), but you do not get DF's to model those effects.  You can estimate enumerative statistics to describe that data (e.g., average, variance, slope) and evaluate whether the fixed effects affect those response variables.  The repeated measures are not an appropriate estimate of the MSE.

"All models are wrong, some are useful" G.E.P. Box

Recommended Articles