Return to the Daily Sleep Diary page
						
										DAILY SLEEP DIARY
SCRIPT INFO

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

Script Copyright ©  04-18-2016 Millisecond Software


BACKGROUND INFO

											*Purpose*
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


											  *Task*
Each morning, participants answer 8 questions about their sleep.										  


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

(1) Raw data file: 'DailySleepDiary.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: 'DailySleepDiary_summary.iqdat' (Inquisit Lab: one data file per 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)
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.


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

Copyright © Millisecond Software. All rights reserved.
Contact | Terms of Service | Security Statement | Employment