Get subject number


Author
Message
nashby
nashby
Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)
Group: Forum Members
Posts: 78, Visits: 159
Yup that was it. Thanks Dave.
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
No, both subject number and group number need to be known beforehand and cannot be changed by any script at runtime.

The reason is that Inquisit uses these inputs for various *essential* things: Creating and naming data files, assigning participants to conditions based on either subject and/or group number etc.

> I essentially need a payout to only register for one subject out of 60 and doing it offline isnt so helpful.

Hmm, this makes me think I may have misread your question. So, all you want is to have your script *read* the subject number that was randomly generated (or otherwise passed in) before running the experiment?

If so, the property that returns the subject id is script.subjectid (script.groupid for the group number, respectively). You can access that property just like any other property, perform math on it, etc. The only thing you *cannot* do is *write* to the property. It is read-only for the reasons mentioned above.


nashby
nashby
Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)
Group: Forum Members
Posts: 78, Visits: 159
Can I do it with the group variable? I essentially need a payout to only register for one subject out of 60 and doing it offline isnt so helpful.
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
This is not something you can do *in* Inquisit. The subject number needs to be known *before* ever starting an experiment.

nashby
nashby
Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)
Group: Forum Members
Posts: 78, Visits: 159
I have an experiment where I need to create a variable that is the subjects number which is assigned at the start. I cant figure out how to call subjectnumber, any ideas?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search