install.packages("GGIR", dependencies = TRUE)
install.packages("remotes")
remotes::install_github("wadpac/GGIR")
library(devtools)
library(GGIR)
#=====================
# General Parameters
#=====================
g.shell.GGIR(
mode=c(1,2,3,4,5),
datadir= "Z:/Bryan/Accelerometry/",
outputdir="Z:/Bryan/Accelerometry/GGIR/",
f0= 1,
desiredtz ="America/Chicago",
#America/Chicago
do.report=c(2,4,5),
idloc=2,
print.filename= TRUE,
#=====================
# Part 1
#=====================
windowsizes = c(5,60,3600),
do.cal=TRUE,
do.enmo = TRUE,
do.anglez=TRUE,
chunksize=1,
#=====================
# Part 2
#=====================
strategy = 1,
hrs.del.start = 0,
hrs.del.end = 0,
maxdur = 7,
wear_dur_def_proto_day = 7,
includedaycrit = 10,
M5L5res = 5,
winhr = c(0.5, 1.0, 2.0),
qlevels = c(c(1020/1080),c(1050/1080),c(1078/1080)),
qwindow= c(0,24),
ilevels = c(0, 47.4, 69.1, 258.7, 8000),
mvpathreshold = c(69.1),
boutcriter = c(0.8), #
mvpadur= c(1,5,10),
bout.metric = 6,
#=====================
# Part 3
#=====================
anglethreshold = c(5),
timethreshold = 5,
acc.metric="ENMO",
ignorenonwear=TRUE,
overwrite=FALSE,
constrain2range=TRUE,
do.part3.pdf=TRUE,
do.parallel=FALSE,
#=====================
# Part 4
#=====================
loglocation = ("Z:/Bryan/Accelerometry/GGIR//SLEEP.csv"),
excludefirst.part4= FALSE,
def.noc.sleep = 1,
sleepwindowType = "SPT",
outliers.only = TRUE,
criterror = 4,
relyonguider = FALSE,
sleeplogidnum = FALSE,
colid=1,
coln1=2,
do.visual = FALSE,
nnights = 7,
sleeplogsep = ",",
#=====================
# Part 5
#=====================
excludefirstlast.part5 =FALSE,
threshold.lig = c(47.4),
threshold.mod = c(69.1),
threshols.vig = c(258.7),
boutcriter.in = 0.9,
boutcriter.lig = 0.8,
boutcriter.mvpa = 0.8,
boutcriter.vig = 0.8,
boutdur.in = c(5,10,20,30),
boutdur.lig = c(1,5,10),
boutdur.mvpa = c(1,5,10),
boutdur.vig = c(1,5),
#=====================
# Visual report
#=====================
timewindow = "MM",
visualreport=TRUE)
1. A couple of months ago I ran the code that I am sharing below and it gave me all the outputs I needed. I updated the version from 2.8-0 to 2.9-0, I ran it again using the same files just to confim some values and this message pop up in part 1Error in rbind(S, data) : number of columns of matrices must match (see arg 2).
2. I also wanted to know, if the sleep log I am using in part 4 is also delimiting the time frame in part 2 or it is only applied in part 5? We are just interested in waking hours (6:00 to 23:00) trying to get the time spent in LPA and MVPA, and the intensity gradient and average acceleration.
--
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/87157a42-1357-4534-9653-7419c8a97a31n%40googlegroups.com.
Hello Vincent,Thank you so much for your prompt response.Find some of the files attached.Best,Bryan
Hello Vincent,
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/3ce3c7b7-dc24-4610-8868-7f370a24c3c7n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "R package GGIR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/RpackageGGIR/iCZUfxWhMUg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to RpackageGGIR...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/492436e4-eaeb-41a5-92d5-bcf8c87cc951n%40googlegroups.com.