1
$\begingroup$

I'll appreciate your help with conceptually understanding the models below.

I have data for 150 subjects who completed a cognitive task. Each subject responded to four types of stimuli (A, B, C, D), and each type of stimulus was presented multiple times - see table below for an example data.

I'm interested in the effects of age, stimulus type (STIMTYPE) and their interaction, on time.

Example data for 2 participants. Participants go thru 300 trials.

Does this model make sense?

timer ~ age + stimtype + age:stimtype + (1|ID)

I think that it does not take into account the nested structure (multiple presentations for each stimulus type), correct? and if so - how do I model that?

$\endgroup$

1 Answer 1

1
$\begingroup$

Your model:

timer ~ age + stimtype + age:stimtype + (1|ID)

will estimate the association of the fixed effects of age, stimtype and their interaction with timer, while adjusting for the repeated measures on participant (ID). You also have repeated measures of stimtype (and age for that matter), but since you are fitting fixed effects for these, this is also taken care of.

$\endgroup$
1
  • $\begingroup$ Thanks Robert, so I get from your answer that my model specification is plausible. $\endgroup$
    – OnY
    Commented Jun 8, 2021 at 9:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.