Loading...

National Institute of Mental Health Data Archive (NDA) Sign In
National Institute of Mental Health Data Archive (NDA) Sign In
NDA

Success! An email is on its way!

Please check your email to complete the linking process. The link you receive is only valid for 30 minutes.

Check your spam or junk folder if you do not receive the email in the next few minutes.

Warning Notice This is a U.S. Government computer system, which may be accessed and used only for authorized Government business by authorized personnel. Unauthorized access or use of this computer system may subject violators to criminal, civil, and/or administrative action. All information on this computer system may be intercepted, recorded, read, copied, and disclosed by and to authorized personnel for official purposes, including criminal investigations. Such information includes sensitive data encrypted to comply with confidentiality and privacy requirements. Access or use of this computer system by any person, whether authorized or unauthorized, constitutes consent to these terms. There is no right of privacy in this system.
Create or Link an Existing NDA Account
NIMH Data Archive (NDA) Sign In or Create An Account
Update Password

You have logged in with a temporary password. Please update your password. Passwords must contain 8 or more characters and must contain at least 3 of the following types of characters:

  • Uppercase
  • Lowercase
  • Numbers
  • Special Characters limited to: %,_,!,@,#,$,-,%,&,+,=,),(,*,^,:,;

Subscribe to our mailing list

Mailing List(s)
Email Format

You are now leaving the NIMH Data Archive (NDA) web site to go to:

Click on the address above if the page does not change within 10 seconds.

Disclaimer

NDA is not responsible for the content of this external site and does not monitor other web sites for accuracy.

Accept Terms
Data Access Terms - Decline Terms

Are you sure you want to cancel? This will decline terms and you will not be authorized for access.

Gain/Loss Task

1,247 Shared Subjects

A 2-armed bandit task in which 2 of 3 stimuli with stable win probabilities are sampled on each trial. These probabilities may be interchanged once or twice per block. [https://doi.org/10.1371/journal.pbio.0040233]
Clinical Assessments
Task Based
12/11/2020
gloss01
01/13/2021
View Change History
01
Query Element Name Data Type Size Required Description Value Range Notes Aliases
subjectkey GUID Required The NDAR Global Unique Identifier (GUID) for research subject NDAR*
src_subject_id String 20 Required Subject ID how it's defined in lab/project
interview_date Date Required Date on which the interview/genetic test/sampling/imaging/biospecimen was completed. MM/DD/YYYY
interview_age Integer Required Age in months at the time of the interview/test/sampling/imaging. 0::1440 Age is rounded to chronological month. If the research participant is 15-days-old at time of interview, the appropriate value would be 0 months. If the participant is 16-days-old, the value would be 1 month.
sex String 20 Required Sex of subject at birth M;F; O; NR M = Male; F = Female; O=Other; NR = Not reported
experiment_id Integer Recommended ID for the Experiment/settings/run
trialnum Integer Recommended Number of trial within entire task
condid Integer Recommended Is the block a gain block or a loss block? ( Gain block: subjects wins 25 points for winning and 0 for losing, Loss block: subject loses 25 points for losing and 0 points for winning) 1;-1 1 = Gain; -1 = Loss
pwin_1 Float Recommended Probability of stimulus 1 resulting in a win 0::1 Probability must be decimal value.
pwin_2 Float Recommended Probability of stimulus 2 resulting in a win 0::1 Probability must be decimal value.
pwin_3 Float Recommended Probability of stimulus 3 resulting in a win 0::1 Probability must be decimal value.
iswin_1 Integer Recommended Did stimulus 1 result in a win? 0;1 0 = No; 1 = Yes
iswin_2 Integer Recommended Did stimulus 2 result in a win? 0;1 0 = No; 1 = Yes
iswin_3 Integer Recommended Did stimulus 3 result in a win? 0;1 0 = No; 1 = Yes
sampleoutcome_1 Integer Recommended Number of points earned if stimulus 1 is selected -50;-25;0;25 Possible values are 0 and 25 in Gain blocks, and -25 and 0 in Loss blocks. Missed trials are -50 points.
sampleoutcome_2 Integer Recommended Number of points earned if stimulus 2 is selected -50;-25;0;25 Possible values are 0 and 25 in Gain blocks, and -25 and 0 in Loss blocks. Missed trials are -50 points.
sampleoutcome_3 Integer Recommended Number of points earned if stimulus 3 is selected -50;-25;0;25 Possible values are 0 and 25 in Gain blocks, and -25 and 0 in Loss blocks. Missed trials are -50 points.
stimindex_1 Integer Recommended Index of left stimulus, sampled from set of 3 stimuli available during current block 1::3 1 = stimulus 1 selected; 2 = stimulus 2 selected; 3 = stimulus 3 selected
stimindex_2 Integer Recommended Index of right stimulus, sampled from set of 3 stimuli available during current block 1::3 1 = stimulus 1 selected; 2 = stimulus 2 selected; 3 = stimulus 3 selected
stimid_1 Integer Recommended ID of left stimulus in the set of all stimuli shown during the task
stimid_2 Integer Recommended ID of right stimulus in the set of all stimuli shown during the task
resp_01 Integer Recommended Gain/Loss Task - Subject's response 1;2;-999 1 = Left; 2 = Right; -999 = Miss (subject took longer than 2s to respond) resp
selectstimid Integer Recommended ID of selected stimulus in the set of all stimuli shown during the task, indexed from 1 NaN indicates missed response (subject took longer than 2s)
selectstimindex Integer Recommended Index of selected stimulus in the set of 3 stimuli available during current block, indexed from 1 1::3;-999 1 = stimulus 1 selected; 2 = stimulus 2 selected; 3 = stimulus 3 selected; -999 indicates missed response (subject took longer than 2s)
iscorrect Integer Recommended Indicates whether selected stimulus had the higher win probability of the two stimuli shown 0;1;-999 0 = False, 1 = True. -999 indicates missed response (subject took longer than 2s)
outcomewin Integer Recommended Indicates whether selected stimulus resulted in a win 0;1;-999 0 = False, 1 = True. -999 indicates missed response (subject took longer than 2s)
outcomerew Integer Recommended Number of points earned by subject response -50;-25;0;25 Possible values are 0 and 25 in Gain blocks, and -25 and 0 in Loss blocks. Missed trials are -50 points.
rt_01 Float Recommended Time elapsed between stimulus onset and subject reponse In milliseconds. -999 indicates missed response (subject took longer than 2s) rt
sessionid1 Integer Recommended ID for session For in-lab subjects, sessionID corresponds to the visit number. For online subjects, sessionID = 1 sessionid
practice1 Integer Recommended Is the trial a practice trial? 0;1 0 = main task; 1 = practice practice
Data Structure

This page displays the data structure defined for the measure identified in the title and structure short name. The table below displays a list of data elements in this structure (also called variables) and the following information:

  • Element Name: This is the standard element name
  • Data Type: Which type of data this element is, e.g. String, Float, File location.
  • Size: If applicable, the character limit of this element
  • Required: This column displays whether the element is Required for valid submissions, Recommended for valid submissions, Conditional on other elements, or Optional
  • Description: A basic description
  • Value Range: Which values can appear validly in this element (case sensitive for strings)
  • Notes: Expanded description or notes on coding of values
  • Aliases: A list of currently supported Aliases (alternate element names)
  • For valid elements with shared data, on the far left is a Filter button you can use to view a summary of shared data for that element and apply a query filter to your Cart based on selected value ranges

At the top of this page you can also:

  • Use the search bar to filter the elements displayed. This will not filter on the Size of Required columns
  • Download a copy of this definition in CSV format
  • Download a blank CSV submission template prepopulated with the correct structure header rows ready to fill with subject records and upload

Please email the The NDA Help Desk with any questions.