--
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/0ba5adae-4133-49a7-8cce-bfba483af3f2%40googlegroups.com.
Dear Vincent and group members,
I wonder whether this has now been updated in the newest version? (I think so 😊)
I am currently analyzing a similar short dataset (Geneactiv lab study, measurement duration: 2h) and thus would like to use 1s epoch ENMO data from part 1/2 only. The code works fine although, interestingly, I get two different days in the part2_daysummary.csv (Friday 1.75h and Saturday 0.25h). This seems to depend on the window sizes for the non-wear detection (I reduced them also) and perhaps more? But I am not sure why there are always two days...
Anyway, my main question is about using free-living calibration coefficients for the lab study (I would like to follow Hildebrand et al 2016). We have free-living data from the same device collected before/after the lab session. I have extracted the coefficients (x.scale etc.) from the free-living file “data_quality_report” and put them into a new file, which I have added to the code for the lab study (backup.cal.coef = location of new file).
I think, it worked (eg, angles/ENMO values are different between the analysis with and without “backup calibration” + no errors in R) but I am just not sure here:
1) In general, am I right using the calibration values (x.scale etc.) from the “data quality report file” from the free-living measurements for that? Is this currently the best way to calibrate very short measurements in GGIR?
2) When referring to the “old” free-living coefficients using “backup.cal.coef “, the angles/ENMOs are the same, irrespective of do.cal = TRUE/FALSE. I read it should be “FALSE” in a different post?
3) I can find the “old" free-living cal. coefficients in the newly generated file “Data_quality_report” for the lab study but values of Zero for pre and post calibration error and the message saying “Autocalibration not done”. I guess this is ok since I manually calibrated them?
Further details:
When analyzing the lab study in the standard way (without backup cal.), calibration is done but auto-calibration not? Eg, there are values for cal.error.start = 0.01324, n.10sec.windows=216 but it tells me that recalibration was not done because there not enough points on all sided of the sphere. That is why I wondered about manual calibration.
Thank you very much!!
Best wishes
Matteo
Hi Matteo,
I am currently analyzing a similar short dataset (Geneactiv lab study, measurement duration: 2h) and thus would like to use 1s epoch ENMO data from part 1/2 only. The code works fine although, interestingly, I get two different days in the part2_daysummary.csv (Friday 1.75h and Saturday 0.25h). This seems to depend on the window sizes for the non-wear detection (I reduced them also) and perhaps more? But I am not sure why there are always two days...
GGIR splits data based on the midnight timestamps it finds in the data.
Did you specify argument desiredtz as your local timezone and did the recording not overlap with midnight?
Anyway, my main question is about using free-living calibration coefficients for the lab study (I would like to follow Hildebrand et al 2016). We have free-living data from the same device collected before/after the lab session. I have extracted the coefficients (x.scale etc.) from the free-living file “data_quality_report” and put them into a new file, which I have added to the code for the lab study (backup.cal.coef = location of new file).
I think, it worked (eg, angles/ENMO values are different between the analysis with and without “backup calibration” + no errors in R) but I am just not sure here:
1) In general, am I right using the calibration values (x.scale etc.) from the “data quality report file” from the free-living measurements for that? Is this currently the best way to calibrate very short measurements in GGIR?
In theory yes, but this comes with a couple of assumptions:
2) When referring to the “old” free-living coefficients using “backup.cal.coef “, the angles/ENMOs are the same, irrespective of do.cal = TRUE/FALSE. I read it should be “FALSE” in a different post?
If argument backup.cal.coef is specified then auto-calibration will not be run. I do not think do.cal will change this.
3) I can find the “old" free-living cal. coefficients in the newly generated file “Data_quality_report” for the lab study but values of Zero for pre and post calibration error and the message saying “Autocalibration not done”. I guess this is ok since I manually calibrated them?
Yes, this is expected behaviour, but I agree that it is somewhat confusing. Ideally you would like to display the error reduction that was achieved in the free-living data. If you think this is important to fix, would you mind creating an issue item to describe this https://github.com/wadpac/GGIR/issues (Sorry, I tend to forget issue if they are not logged there or recently discussed in this GGIR google group).
Further details:
When analyzing the lab study in the standard way (without backup cal.), calibration is done but auto-calibration not? Eg, there are values for cal.error.start = 0.01324, n.10sec.windows=216 but it tells me that recalibration was not done because there not enough points on all sided of the sphere. That is why I wondered about manual calibration.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/f5a9cbec-52c2-4573-a6ab-f3172e106107n%40googlegroups.com.
However, we will fix this in some way.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/7c4fd814-e5e4-4e98-9995-bec95806273an%40googlegroups.com.