help > Error using conn_importcondition (line 199)
Showing 1-3 of 3 posts
Display:
Results per page:
Jun 14, 2021  09:06 AM | Arthur Montalto - UNSW
Error using conn_importcondition (line 199)
Hi Alfonso and Conn users/experts/fans,

1) I am trying to import conditions for a gPPI from a csv file but get the following error:

Error using conn_importcondition (line 199)
multiple rows for condition Correct_Go subject 1 session 1

I am working on a Go-NoGo task with one session, four conditions: Correct_Go / Correct_NoGo / Failed_Go / Failed_NoGo. The onsets differ from subject to subject because mistakes are included in the conditions (Failed_Go for omission errors and Failed_NoGo commission errors).

I attached an example of the csv file for three participants. I feel like I did follow the accepted format for Conn so I am confused about this error message.

Could you please help with that?

2) Just anticipating a potential following issue, not all participants have the same number of conditions since some did not make any mistake and therefore don't have instances of Failed_Go and/or Failed_NoGo. Will this be a problem?

Many thanks in advance,
Arthur Montalto
Jun 18, 2021  09:06 AM | Arthur Montalto - UNSW
RE: Error using conn_importcondition (line 199)
Hi,

Just following up on my previous questions, would anyone be able to help? I am still unable to understand this error:

Error using conn_importcondition (line 199)
multiple rows for condition Correct_Go subject 1 session 1

For example (or please see the file attached to my previous message), this is a sample of the csv file from the first 4 onsets of the first 3 subjects:

condition_name subject_number session_number onsets durations
Correct_Go, 1, 1, 0.01, 0
Correct_Go, 1, 1, 2.4948, 0
Correct_Go, 1, 1, 4.981, 0
Failed_NoGo, 1, 1, 7.468, 0
Correct_Go, 2, 1, 0.01, 0
Correct_Go, 2, 1, 2.4948, 0
Correct_Go, 2, 1, 4.981, 0
Correct_NoGo, 2, 1, 7.468, 0
Correct_Go, 3, 1, 0.01, 0
Correct_Go, 3, 1, 2.4948, 0
Correct_Go, 3, 1, 4.981, 0
Correct_NoGo, 3, 1, 7.468, 0

Anything wrong with this format?

Many Thanks,
Arthur
Jun 18, 2021  10:06 AM | Alfonso Nieto-Castanon - Boston University
RE: Error using conn_importcondition (line 199)
Hi Arthur,

The condition .csv format expects you to collapse all of the events of the same condition, subject, and session into a single line, e.g.

condition_name subject_number session_number onsets durations
Correct_Go, 1, 1, 0.01 2.4948 4.981, 0
Failed_NoGo, 1, 1, 7.468, 0
Correct_Go, 2, 1, 0.01 2.4948 4.981, 0
Correct_NoGo, 2, 1, 7.468, 0
Correct_Go, 3, 1, 0.01 2.4948 4.981, 0
Correct_NoGo, 3, 1, 7.468, 0
etc.

Best
Alfonso

Originally posted by Arthur Montalto:
Hi,

Just following up on my previous questions, would anyone be able to help? I am still unable to understand this error:

Error using conn_importcondition (line 199)
multiple rows for condition Correct_Go subject 1 session 1

For example (or please see the file attached to my previous message), this is a sample of the csv file from the first 4 onsets of the first 3 subjects:

condition_name subject_number session_number onsets durations
Correct_Go, 1, 1, 0.01, 0
Correct_Go, 1, 1, 2.4948, 0
Correct_Go, 1, 1, 4.981, 0
Failed_NoGo, 1, 1, 7.468, 0
Correct_Go, 2, 1, 0.01, 0
Correct_Go, 2, 1, 2.4948, 0
Correct_Go, 2, 1, 4.981, 0
Correct_NoGo, 2, 1, 7.468, 0
Correct_Go, 3, 1, 0.01, 0
Correct_Go, 3, 1, 2.4948, 0
Correct_Go, 3, 1, 4.981, 0
Correct_NoGo, 3, 1, 7.468, 0

Anything wrong with this format?

Many Thanks,
Arthur