--
You received this message because you are subscribed to the Google Groups "R package GGIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to RpackageGGIR...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/a682759f-35ae-4afb-a762-bdd0d6d2beacn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/fab23010-2f18-4563-80e2-dd3eb62e8507n%40googlegroups.com.
library(GGIR)
GGIR(
### Part 0 - General settings
datadir= "Z:\\...",
outputdir= "C:\\...",
mode=c(1,2,3,4,5),
studyname = "ADPRF",
#desiredtz = "Australia/Melbourne",
overwrite = T,
idloc=2,
storefolderstructure=TRUE,
print.filename= TRUE,
configfile = c(),
############################################################################################################
# Part 1 – Raw data processing/data quality/extracts features/nonwear detection
windowsizes = c(5, 900, 3600),
do.cal = TRUE,
do.enmo = TRUE,
acc.metric = "ENMO",
do.enmoa = FALSE, #default is false
do.anglex = FALSE, #default is false
do.angley = FALSE, #default is false
do.anglez = TRUE, #default is true
#^All kept on default, as I will be using the enmo settings already specified above. The anglez is default true, as needed for sleep analyses. Kept in but don't think it's needed to have this in.
part5_agg2_60sec = TRUE,
dynrange = c(),
printsummary=FALSE,
#############################################################################################################
# Part 2 – data quality and descriptives
strategy = 1,
maxdur = 0,
max_calendar_days = 0,
hrs.del.start = 0, #only needed for strategy 1
hrs.del.end = 0, #only needed for strategy 1
#WornDuringSleep =FALSE,
#part2ImpWithZero = TRUE,
#part2ExcludeNonwear = TRUE,
#^ These settings also tried (This bit of code was provided by Dr. Jairo H Migueles, during GGIR course). No information yet available online.
includedaycrit = 8,
#^ tell GGIR how many hours of valid data per day (midnight-midnight) is acceptable.
# have tried altering this number with no effect on number of participants in part 5 output
includedaycrit.part5 = 0,
#^ tell GGIR what fraction of the waking hours in a day (value below 1) is acceptable.Default is 2/3, yet because we only have waking we want full proportion (e.g., 3/3 or 1).
#have also tried changing this
do.imp=TRUE,
mvpathreshold = c(464.6),
mvpadur = c(1, 5, 10),
boutcriter = 1.0,
qwindow = c(0, 24),
#############################################################################################################
# Parts 3 & 4 – sleep - NOT APPLICABLE
HASPT.algo = "Notworn",
HASIB.algo = "NotWorn",
Guider = "Notworn",
# relyonguider = T,
# includenightcrit = 8,
# ignorenonwear = FALSE,
# Guider = "nosleeplog_accnotworn",
# have tried various alternatives including those commented out above, with various values for includenightcrit=
#############################################################################################################
# Part 5 – full-day time-use analysis
# Part 5 loads the imputed acceleration data from part 2. Re-calculate variables based on the merged data (split by sleep period time & waking hours)
# Added Hurter cutpoint in there for light: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6306859/
threshold.lig = 32.6 , threshold.mod = 142.6, threshold.vig = 464.6,
#^ Physical activity and Inactivity thresholds
boutdur.in = c(1, 5, 10), boutdur.lig = c(1, 5, 10), boutdur.mvpa = c(1, 5, 10),
#^ Bout durations for each intensity
# Fraction of a bout that needs to meet the thresholds
boutcriter.in = 1.0, boutcriter.lig = 1.0, boutcriter.mvpa = 1.0,
# ^Based on Mai Chinapaws paper I have set the boutcriter.in on 1.0
frag.metrics="all",
# Reports
timewindow = c("MM","WW"),
do.report = c(2, 4, 5),
do.sibreport=TRUE,
sibreport=c(),
visualreport = F,
do.visual = F,
save_ms5rawlevels = TRUE, # saving time series classification
save_ms5raw_format = "csv", # as csv
save_ms5raw_without_invalid = TRUE, #
outliers.only = TRUE, # only relevant to do.visual
)
#WornDuringSleep =FALSE,#part2ImpWithZero = TRUE,#part2ExcludeNonwear = TRUE,
Guider = "Notworn",
HASPT.algo = "Notworn",HASIB.algo = "NotWorn",
# relyonguider = T,# includenightcrit = 8,
either receive no part-5 output, or a part-5 output with very few participants included (
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/b798ec02-561e-4871-958c-f778a8347f24n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/b4e84003-6f3a-4c61-b2d1-20b6af51b559n%40googlegroups.com.