User Manual: Inquisit Daily Sleep Diary


___________________________________________________________________________________________________________________	

										DAILY SLEEP DIARY
___________________________________________________________________________________________________________________

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com) for Millisecond Software, LLC
Date: 02-23-2016
last updated:  02-21-2022 by K. Borchert (katjab@millisecond.com) for Millisecond Software, LLC

Script Copyright © 02-21-2022 Millisecond Software
___________________________________________________________________________________________________________________
BACKGROUND INFO 	
___________________________________________________________________________________________________________________
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.
http://www.nhs.uk/livewell/insomnia/documents/sleepdiary.pdf

___________________________________________________________________________________________________________________
OVERVIEW
___________________________________________________________________________________________________________________
Each morning, participants answer 8 questions about their sleep.										  

___________________________________________________________________________________________________________________	
DURATION 
___________________________________________________________________________________________________________________	
the default set-up of the script takes appr. 1.5 minutes to complete

___________________________________________________________________________________________________________________	
DATA FILE INFORMATION 
___________________________________________________________________________________________________________________
The default data stored in the data files are:

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

date, time:						date and time script was run with the current group/subjectnumber 
subject, group, session:	  	 with the current subject/groupnumber/session id
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: 'dailysleepdiary_summary.iqdat' (Inquisit Lab: one data file per participant)

inquisit.version: 						Inquisit version run
computer.platform:					the platform the script was run on (win/mac/ios/android)
startDate:							date script was run
startTime:							time script was started
subjectid:							assigned subject id number
groupid:							assigned group id number
sessionid:							assigned session id number
elapsedTime:						time it took to run script (in ms); measured from onset to offset of script
completed:							0 = script was not completed (prematurely aborted); 
									1 = script was completed (all conditions run)

textbox.id.response:							assigned id (if different than subjectId)
textbox.dayCount.response:						entered day count 
textbox.q1_bedtime.response-
radiobuttons.q8_sleepQualityRating.response: 	responses to question 1-8
 
___________________________________________________________________________________________________________________	
INSTRUCTIONS 
___________________________________________________________________________________________________________________
can be edited under Editable Parameters

___________________________________________________________________________________________________________________	
EDITABLE CODE 
___________________________________________________________________________________________________________________	
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:

/pageinstructions:				Instructions for Diary
/dateFormat:					"DMY" (day/month/year), "MDY" (month/day/year, default), "YMD" (year/month/day)