Learn R Programming

INSTRUCTIONS FOR USE (v0.2.2)

  1. Import physical activity dataset into local environment

  2. Check that activity count data (i.e., vector magnitude) is calculated and present in the physical activity dataset

  3. Update the time variable formats and data types via the ChangeTimeVar function, ensuring that the format field matches the current time formatting

  4. Perform any other pre-processing specific to the dataset

  5. If using sleep diary data, repeat steps 1, 3, and 4 for sleep diary data

  6. Run the SleepEstEachDay function for each subject while specifying preferred parameter values (refer to documentation for details)

Copy Link

Version

Install

install.packages('ActiSleep')

Monthly Downloads

223

Version

0.2.2

License

GPL-3

Maintainer

Nathan Szeto

Last Published

June 19th, 2024

Functions in ActiSleep (0.2.2)

SleepEstEachDay

Daily sleep estimate
GetEstSleepInterval_subj

Estimated sleep interval
GetDiary_subj

Diary In/Out-bed Times
cal_mean_idx

Calculate Mean Index
AccelData

Accelerometry Data
SearchSleepSeg

Find specific sleep segment
ChangeTimeVar

Reformat Time Variable
aggregate_dat

Aggregate Accelerometer Data
Segmentor-class

This code was written by Alice Cleynen, Guillem Rigaill, and Michel Koskas as part of the Segmentor3IsBack package, which is no longer in CRAN. It has been imported into the ActiSleep package to ensure this package's longevity.
read_agd

Read in AGD filedata
SleepDiary1Week

Sleep Diary 1-Week Data
SleepDiary1Day

Sleep Diary 1-Day Data