Return to the Medical Outcomes Study (MOS) Sleep Scale page

Script Katja Borchert, Ph.D. ( for Millisecond Software, LLC
Date: 10-11-2013
last updated:  12-03-2018 by K.Borchert for Millisecond Software LLC

Script Copyright © 12-03-2018 Millisecond Software



This script implements the MOS sleep scale 1.0 as provided by:

and discussed in:
Hays, Ron D., Martin, Susan A., Sesti, Anne M., & Spritzer, Karen L. (2005). Psychometric properties of the 
Medical Outcomes Study sleep measure. Sleep Medicine, 6(1), 41-44.

Scoring Algorithm can be obtained under:

and is described in:
Spritzer, K. L. & Hays, R. D. (2003, November). MOS Sleep Scale: A Manual for Use and Scoring, Version 1.0. Los Angeles, CA.

The survey presents 12 sleep questions (by default, the questions are coded in such a way that participants do not have
to answer them) that make up 7 subscales (+ 2 extra).

The default data stored in the data files are:

(1) Raw data file: 'MOS_SleepScale.iqdat'

date, time, subject:			date and time script was run with the current subjectnumber 
build:							version of Inquisit
xxxx.response:					response to a particular question (here in numbers)
xxxx.latency:					latency of clicking "next" the last time the page was visited

(2) Summary data file: 'MOSSleepScale__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)

/SLPD4_sleepdisturbance -
/SLP9_sleepproblems:			subscale scores	
/q1 -
/q12_SP:						scoring of the individual questions
										(according to the scoring manual: "Note that items 4 and 12 are scored differently 
										depending upon which scale they are used in. When used in the sleep adequacy scale, 
										a higher score reflects less of a problem. When used in the sleep problems index, a 
										higher score reflects more of a problem." (Spritzer & Hays, 2003, p.2)
/count_SLPD4 -
/count_SLP9:					count the number of answered items of a subscale

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:

/instructions:					Contain the surveypage instructions. The default instructions ("Please answer the following questions")
								are not original to the survey and were addede by Millisecond Software.
/skipfeedback:					true = no feedback is given (default)
								false = feedback is given (->

Copyright © Millisecond Software. All rights reserved.
Contact | Terms of Service | Privacy Statement | Security Statement | GDPR
Website Security Test