Skip to contents

MCTQ

fd()
Compute MCTQ work-free days
so()
Compute MCTQ local time of sleep onset
gu()
Compute MCTQ local time of getting out of bed
sdu()
Compute MCTQ sleep duration
tbt()
Compute MCTQ total time in bed
msl()
Compute MCTQ local time of mid-sleep
napd()
Compute MCTQ nap duration (only for MCTQ\(^{Shift}\))
sd24()
Compute MCTQ 24 hours sleep duration (only for MCTQ\(^{Shift}\))
sd_week()
Compute MCTQ average weekly sleep duration
sd_overall()
Compute MCTQ overall sleep duration (only for MCTQ\(^{Shift}\))
sloss_week()
Compute MCTQ weekly sleep loss
le_week()
Compute MCTQ average weekly light exposure
msf_sc()
Compute MCTQ sleep-corrected local time of mid-sleep on work-free days
sjl() sjl_rel()
Compute MCTQ social jetlag
sjl_sc() sjl_sc_rel()
Compute Jankowski's MCTQ sleep-corrected social jetlag
sjl_weighted()
Compute MCTQ absolute social jetlag across all shifts

Data

std_mctq
A fictional standard MCTQ dataset
micro_mctq
A fictional \(\mu\)MCTQ dataset
shift_mctq
A fictional MCTQ\(^{Shift}\) dataset

Utilities

assign_date()
Assign dates to two sequential hours
cycle_time()
Cycle time objects
pretty_mctq()
Make an MCTQ dataset more presentable
qplot_walk()
Walk through distribution plots
random_mctq()
Build a random MCTQ case
raw_data()
Get paths to mctq raw datasets
round_time()
Round time objects
shorter_interval() longer_interval() shorter_duration() longer_duration()
Find the shorter or longer interval between two hours
sum_time() vct_sum_time()
Sum time objects