JimGrange / flankr

An R package implementing computational models of Eriksen flanker task performance.
8 stars 1 forks source link

No lines in model fit plots #3

Closed ChlorisF closed 2 years ago

ChlorisF commented 2 years ago

Hi Jim,

I got a somewhat weird problem after running the model fit - when I tried to plot it, there were only dots (see figure below)... So I went back to check my data, and they seemed sensible. As my data actually contained multiple "conditions" (e.g., emotion type, Flanker image nationality, target image nationality), I tried to perform model fit using each condition, but the same problem remained.

Could you advise on potential reasons for (and solutions to) this? Many thanks!

Chloris Originally posted by @ChlorisF in https://github.com/JimGrange/flankr/issues/2#issuecomment-1189498494

JimGrange commented 2 years ago

Thanks Chloris,

This issue might be caused by your response time being in milliseconds rather than seconds. If you divide your RT column by 1000 and try the fit again, that should work. If not, please let me know!

JimGrange commented 2 years ago

Hi @ChlorisF - Just checking in whether the above solution worked for you.

ChlorisF commented 2 years ago

Thanks Chloris,

This issue might be caused by your response time being in milliseconds rather than seconds. If you divide your RT column by 1000 and try the fit again, that should work. If not, please let me know!

Hi @JimGrange, somehow my reply wasn't successfully sent although I crossed the item off my to-do list. I got tied up in a project until this weekend afterwards, hence the delay - many apologies!

The lines indeed appeared, thanks a lot! However, my model fit does not correspond to human data (Figure 1) even after I set the parms to be the "bestParameters" retrieved from the default model-fitting (Figure 2). The figures below used the DSTP model, but the same situation appeared for the SSP model. Should I find the "best" parameters in another way? Could you advise on how to do it? Let me know if I should open a new issue for this. Thanks a ton.

Figure 1. Fit of the DSTP model to my data (default setting)

Figure 2. Fit of the DSTP model to my data (using $bestParameters as parms)

JimGrange commented 2 years ago

Thanks @ChlorisF,

I will close this issue now. The poor fit of the model to your data isn't an issue with the package. I am not familiar with the data you are trying to model here, but I don't think either the DSTP nor the SSP model are appropriate here because of the following:

Is your data from a traditional flanker task, or are you trying to model some other paradigm?

JimGrange commented 2 years ago

@ChlorisF Please feel free to email me if you want to chat about this further (grange [dot] jim [at] gmail [dot] com)