Hello,
I am using GGIR version: 3.0.9. I am trying to process accelerometer data in csv format using the read.myacc.csv within the GGIR function. I am trying to process a 7-day file with accelerometer data in mg but it won’t calibrate. In my output summary file I get the message “recalibration not done because not enough points on all sides of the sphere”. I have tried to convert the data to g and then the calibration works.
Below is the code I have used when trying to process the data in mg. Is there any arguments that I am missing, that I need to specify for it to be able to calibrate and process the data in mg?
Any advice is greatly appreciated.
Thank you,
Cecilie
____________________________________________________________________________
library(GGIR)
GGIR(mode=c(1,2,3,4,5),
datadir="C:/Users/data/filename.csv",
outputdir="C:/Users/results",
studyname = "test",
do.report=c(2,4,5),
#=====================
# read.myacc.csv arguments
#=====================
rmc.nrow = Inf,
rmc.dec = ".",
rmc.firstrow.acc = 2,
rmc.col.acc = 10:12,
rmc.col.time=5,
rmc.unit.acc = "mg",
#rmc.scalefactor.acc = 1,
rmc.unit.time = "POSIX",
rmc.format.time = "%Y-%m-%d %H:%M:%OS",
configtz = NULL,
desiredtz = "Europe/London",
rmc.sf = 25,
rmc.noise = 13,
#=====================
# Part 2
#=====================
data_masking_strategy = 1,
hrs.del.start = 0, hrs.del.end = 0,
maxdur = 9, includedaycrit = 16,
qwindow=c(0,24),
mvpathreshold =c(100),
excludefirstlast = FALSE,
includenightcrit = 16,
#=====================
# Part 3 + 4
#=====================
def.noc.sleep = 1,
outliers.only = TRUE,
criterror = 4,
do.visual = TRUE,
#=====================
# Part 5
#=====================
threshold.lig = c(30), threshold.mod = c(100), threshold.vig = c(400),
boutcriter = 0.8, boutcriter.in = 0.9, boutcriter.lig = 0.8,
boutcriter.mvpa = 0.8, boutdur.in = c(1,10,30), boutdur.lig = c(1,10),
boutdur.mvpa = c(1),
includedaycrit.part5 = 2/3,
#=====================
# Visual report
#=====================
timewindow = c("WW"),
visualreport=TRUE)
--
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/8fccf2a3-01b4-4cb7-8316-3c3eb2da807bn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/8c2dfb32-2328-4478-bc95-129176383b9cn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/208f7e76-8a5f-460e-b9bb-d93397fc81e3n%40googlegroups.com.