Daily Sleep Diary

Technical Manual

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com), Millisecond

Created: January 23, 2016

Last Modified: January 25, 2023 by K. Borchert (katjab@millisecond.com), Millisecond

Script Copyright © Millisecond Software, LLC

Background

This script implements a computerized version of a Daily Sleep Diary.

Kevin Morgan, Beverley David, Claire Gascoigne (2007). Clinical Sleep Research Unit Loughborough University UK. https://www.nhs.uk/livewell/insomnia/documents/sleepdiary.pdf

Duration

1.5 minutes

Overview

Each morning, participants answer 8 questions about their sleep.

Instructions

can be edited under Editable Parameters

Summary Data

File Name: dailysleepdiary_summary.iqdat' (Inquisit Lab: one data file per participant)

Data Fields

NameDescription
inquisit.version Inquisit version number
computer.platform Device platform: win | mac |ios | android
startDate Date the session was run
startTime Time the session was run
subjectId Participant ID
groupId Group number
sessionId Session number
elapsedTime Session duration in ms
completed 0 = Test was not completed
1 = Test was completed
textbox.id.response Assigned id (if different than subjectId)
textbox.dayCount.response Entered day count
textbox.q1BedTime.response-
radioButtons.q8SleepQualityRating.response Responses to question 1-8

Raw Data

File Name: dailysleepdiary.iqdat

Data Fields

NameDescription
date Date the session was run
time Time the session was run
subject, group, session With the current subject/groupnumber/session id
build Inquisit version number
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)

Parameters

The procedure can be adjusted by setting the following parameters.

NameDescriptionDefault
pageInstructions Instructions for Diary; the instructions that appear at the top of each surveyPage
dateFormat "DMY" (day/month/year), "MDY" (month/day/year, default), "YMD" (year/month/day)