Return to the Pittsburgh Sleep Quality Index - Revised (PSQI - Revised) page
PITTSBURGH SLEEP QUALITY INDEX (PSQI) - Revised
Script Author: Katja Borchert, Ph.D. (firstname.lastname@example.org) for Millisecond Software, LLC
last updated: 04-18-2016 by K.Borchert (email@example.com) for Millisecond Software LLC
Copyright © 04-18-2016 Millisecond Software
This script implements the Pittsburgh Quality Sleep Index (PQSI) as described in:
Buysse, D.J., Reynolds, C.F. III, Monk, T.H., Berman, S.R. & Kupfer, D.J. (1989).
The Pittsburgh Sleep Quality Index: a new instrument for psychiatric practice and research.
Psychiatry Research, 28, 193-213.
Note: the PSQI-Revised inquires only about one's sleep over the past week instead of the entire last month.
The PQSI poses 19 questions to participants (+ 5 optional ones to their partner at the very end).
The 19 questions assess 7 different components (or subscales):
Component1: Subjective Sleep Quality
Component2: Sleep Latency
Component3: Sleep Duration
Component4: Habitual Sleep Efficiency
Component5: Sleep Disturbances
Component6: Use of Sleep Medication
Component7: Daytime Dysfunction
Each of those components are scored on a scale from 0-3.
A Global PQSI Score is the sum of all those component scores (range: 0-21).
DATA FILE INFORMATION:
The default data stored in the data files are:
(1) Raw data file: 'PSQI_revised.iqdat'
date, time, group, subject: date and time script was run with the current group/subjectnumber
build: the Inquisit build
q*_response: response given (in assigned values)
q*_latency: how much time (in ms) the participant spent on the surveypage with this particular question (the last time this particular surveypage was visited)
(2) Summary data file: 'PSQI_revised.summary*.iqdat' (a separate file for each participant)
script.startdate: date script was run
script.starttime: time script was started
script.subjectid: subject id number
script.groupid: group id number
script.elapsedtime: time it took to run script (in ms)
computer.platform: the platform the script was run on
/completed: 0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)
Summarydata for each participant: file saves the scores for the subscales and totalscore
textbox.age.response: the reported age of the participant
/skippartnerquestions: 1 = partner questions were omitted; 0 = partner questions were run
included to check accuracy of scoring:
/bedduration: the calculated time a participant spent in bed (though not necessarily sleeping)
/q5j: contains the stored response for question 5j that is used to evaluate the response to calculate
the component 5 score. The defaultresponse is "Not during the past week" unless participant
provided another sleep disturbing reason AND selected a different response other than the defaultresponse.
The value recorded under values.q5j MAY differ from the response recorded under radiobuttons.q5j2.response (see raw data file).
This happens IF no other sleep disturbing reason was provided by participant but yet the defaultresponse
for radiobuttons.q5j2 was changed. In this case, values.q5j still stores the defaultresponse which
will evaluate to 0.
=> Without another sleep disturbing reason provided, the response will always scored as 0
+ scores for all 7 components and the Global PSQIR Score
check below for (relatively) easily editable parameters, stimuli, instructions etc.
Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.
The parameters you can change are:
/skippartnerquestions: true = the last 5 questions (partner questions) are skipped (default)
false = the last 5 questions are NOT skipped