smfleming / LBA

Linear ballistic accumulator
7 stars 4 forks source link

LBA_mle error with the coherence vector #3

Open ediachek opened 3 years ago

ediachek commented 3 years ago

Hello,

Thank you so much for posting the code!

I encounter the following error when I run the LBA_mle function:

Index in position 2 exceeds array bounds (must not exceed 1).

Error in LBA_mle/fitfunc (line 71)
                vi(t,1) = vi(t,data.response(t));

If I understand correctly, this is an error wit the coherence vector. My experiment has a 1 condition, 2 alternative choice design; the length of the coherence vector matches the lengths of the response, stim, rt vectors.

I would appreciate any tips / suggestions on how to resolve this issue! Thank you!

seemackey commented 2 years ago

Hello,

Thank you so much for posting the code!

I encounter the following error when I run the LBA_mle function:

Index in position 2 exceeds array bounds (must not exceed 1).

Error in LBA_mle/fitfunc (line 71)
                vi(t,1) = vi(t,data.response(t));

If I understand correctly, this is an error wit the coherence vector. My experiment has a 1 condition, 2 alternative choice design; the length of the coherence vector matches the lengths of the response, stim, rt vectors.

I would appreciate any tips / suggestions on how to resolve this issue! Thank you!

Hi Yev, I had this same issue with my data. I couldn't quite understand that part of the code. It almost seems like it does something redundant, but I couldn't get it to work. I've opted for using the two choice by condition design, though I'm still trying to figure out if that is theoretically sound.