Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Instrument Files

One file per instrument in instruments/, named after its ID. id and name are required. See Instruments for how the parts fit together.

# yaml-language-server: $schema=../schemas/instrument.schema.json
id: example_mood
name: Example Mood Scale

Top level

KeyTypeDefaultMeaning
idtextThe instrument’s ID. Required.
nametextIts full name. Required.
abbreviationtextIts usual abbreviation.
modalitytextquestionnaireHow it was collected: questionnaire or another modality, such as eeg.
demographicstrue/falsefalseA form about the people rather than a scale: not scored or charted, offered for Table 1 and groups.
construct_nametextWhat it measures.
descriptiontextA sentence or two for the Measures paragraph.
measurestext or mapThis instrument’s own wording of the Measures template’s parts, over the project’s; one text is its paragraph. See Templates.
instructionstextThe instructions respondents saw.
response_setslistNamed lists of response options.
default_response_settextThe response set of items that do not name one.
itemslistThe items.
scoreslistThe scores.
referenceslistReferences, each with a key in references.bib and an optional pdf path inside the references folder.
licensetextHow the instrument may be used.
custommappingValues of custom fields that apply to instruments.

response_sets

KeyMeaning
idThe response set’s ID.
optionsA list of at least one option, each with the value stored in the data (number or text) and the label respondents saw.

items

KeyTypeDefaultMeaning
idtextThe item’s ID, unique within the instrument. Required.
labeltextthe textA short name for tables and text, such as “Child age”.
texttextThe wording. Required.
typechoice, number or textchoiceAnswered with an option, an amount, or an open answer.
response_settextIts response set, when not the default.
min, maxnumberThe allowed range of a number item.
reversetrue or falsefalseReverse-scored.
custommappingValues of custom fields that apply to items.

scores

KeyTypeDefaultMeaning
idtextThe score’s ID. Required.
labeltextIts name, such as Total. Required.
methodsum, mean or scriptHow the items are combined, or script for a score the lab’s own script computes, read from the dataset’s scores file. Required.
itemslist of textThe item IDs. Required for sum and mean; for script, optional, the items the script reads.
missing_rulecomplete, prorate or zerocompleteWhat to do with missing items.
min_validnumber1 with zeroThe fewest answered items that still give a score. Required with prorate.
custommappingValues of custom fields that apply to scores.