Hi @OddsMouse312534,
Welcome in the Community !
If I understand your topic well enough, you're interested to see if treatment group benefit from higher/better post-sleep test score than the control group, taking into account pre-sleep test scores (that may be different across individuals and groups). Without indications on how data was collected (which would guide the appropriate modeling), it is very difficult to come up with a solution.
There may be several ways to analyze your data. Here are some ideas, some options may be irrelevant to your topic, so you can choose which one(s) may seem the most appropriate based on your domain expertise and how the data was collected (random/DoE ?) :
- You can analyze the difference between your post and pre sleep test scores, so that the initial value (pre score) won't affect the results, you would only analyze the difference in sleep score depending on the group in which the individuals are.
- What may also be possible is to use the pre-test sleep score as a random effect, group variable as fixed effect, and post-sleep score as the response Y. In this way, you account for variability in the pre-sleep test score across individuals, and you are interested to see how the final post-sleep test score may be different depending on the group (control vs. treatment).
If there are no individuals both in the control and treatment group, I don't see the point of using ID as a random effect (as the option 2 may already take into account variability of pre-sleep test score across individuals). Option 1 may not require random effects, as only the variation between scores is analyzed (so random influence of the individuals may already be taken into account in the difference of the scores).
You can also check the datasets provided by JMP in the "Mixed Models" section (go to "Help", then "Sample Index" and look for section "Mixed Models"). Depending on how much information you may have on the individuals, there are some datasets that can help you figure out how to deal with the variables : Cholesterol Stacked.jmp for example to deal with time, patients and groups, with a nesting of Treatment in Patient as random effect. Growth Measurement.jmp is a good example to deal with patients evaluated at different age (repeated structure).
These are some quick suggestions and ideas to start the discussion, if you can provide more context about data generation, objective of the study, number of participants, etc... and possibly a short anonymized dataset, that would be helpful.
I am sure other members of the Community may jump into the discussion with more infos provided.
Hope this first discussion starter may help you,
Victor GUILLER
L'Oréal Data & Analytics
"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)