# For externally derived Actiwatch data in .AWD format:
GGIR(datadir = "/media/actiwatch_awd", # folder with epoch level .AWD file
outputdir = "/media/myoutput",
dataFormat = "actiwatch_awd",
extEpochData_timeformat = "%m/%d/%Y %H:%M:%S",
mode = 1:5,
do.report = c(2, 4, 5),
windowsizes = c(60, 900, 3600), # 60 is the expected epoch length
visualreport = FALSE,
outliers.only = FALSE,
overwrite = TRUE,
HASIB.algo = "Sadeh1994",
def.noc.sleep = c()) # <= because we cannot use HDCZA for ZCY
# For externally derived Actiwatch data in .CSV format:
GGIR(datadir = "/media/actiwatch_csv", # folder with epoch level .AWD file
outputdir = "/media/myoutput",
dataFormat = "actiwatch_csv",
extEpochData_timeformat = "%m/%d/%Y %H:%M:%S",
mode = 1:5,
do.report = c(2, 4, 5),
windowsizes = c(15, 900, 3600), # 15 is the expected epoch length
visualreport = FALSE,
outliers.only = FALSE,
HASIB.algo = "Sadeh1994",
def.noc.sleep = c()) # <= because we cannot use HDCZA for ZCY
# For externally derived UK Biobank data in .CSV format:
GGIR(datadir = "/media/ukbiobank",
outputdir = "/media/myoutput",
dataFormat = "ukbiobank_csv",
extEpochData_timeformat = "%m/%d/%Y %H:%M:%S",
mode = c(1:2),
do.report = c(2),
windowsizes = c(5, 900, 3600), # We know that data was stored in 5 second epoch
desiredtz = "Europe/London", # We know that data was collected in the UK
visualreport = FALSE,
overwrite = TRUE)
# For externally derived ActiGraph count data in .CSV format assuming
# a study protocol where sensor was not worn during the night:
GGIR(datadir = "/examplefiles",
outputdir = "",
dataFormat = "actigraph_csv",
mode = 1:5,
do.report = c(2, 4, 5),
windowsizes = c(5, 900, 3600),
threshold.in = round(100 * (5/60), digits = 2),
threshold.mod = round(2500 * (5/60), digits = 2),
threshold.vig = round(10000 * (5/60), digits = 2),
extEpochData_timeformat = "%m/%d/%Y %H:%M:%S",
do.neishabouricounts = TRUE,
acc.metric = "NeishabouriCount_x",
HASPT.algo = "NotWorn",
HASIB.algo = "NotWorn",
do.visual = TRUE,
includedaycrit = 10,
includenightcrit = 10,
visualreport = FALSE,
outliers.only = FALSE,
save_ms5rawlevels = TRUE,
ignorenonwear = FALSE,
HASPT.ignore.invalid = FALSE,
save_ms5raw_without_invalid = FALSE)
# For externally derived Sensear data in .xls format:
GGIR(datadir = "C:/yoursenseweardatafolder",
outputdir = "D:/youroutputfolder",
mode = 1:5,
windowsizes = c(60, 900, 3600),
threshold.in = 1.5,
threshold.mod = 3,
threshold.vig = 6,
dataFormat = "sensewear_xls",
extEpochData_timeformat = "%d-%b-%Y %H:%M:%S",
HASPT.algo = "NotWorn",
desiredtz = "America/New_York",
overwrite = TRUE,
do.report = c(2, 4, 5),
visualreport = FALSE)