Error in Part 3

30 views
Skip to first unread message

Abby Yeung

unread,
Jun 13, 2025, 2:59:23 AMJun 13
to R package GGIR
Dear GGIR community,

I am processing the .csv file converted from 60sec .agd file via the Actilife software. We are using Actigraph GT9X devices and data are collected with 60-Hz. 

This is the example of the resulting csv: (with axis, 1 to 3, steps and vm from left to right)
csv.png

I am using the code below and returns with error. 
Code.png
The error message: "Error in quantile.default(x, probs = HDCZA_threshold[1]/100) :missing values and NaN's not allowed if 'na.rm' is FALSE" 

Your assistance is greatly appreciated!

Regards,
Abby 

奥田昌之

unread,
Jun 21, 2025, 8:39:09 PMJun 21
to R package GGIR
Hi, Abby,

You can use a raw data file.

It was available two years ago. 
A GGIR code for the same csv file with the same parameters  does not work now in my situation. 
It was available two years ago. 
Changes are updates of GGIR and R.  
Now, however, GGIR can read raw datafile, .gt3x, which could not read it two year ago.
It may take a little longer time in process.

Masayuki 

2025年6月13日金曜日 15:59:23 UTC+9 Abby Yeung:

Vincent van Hees

unread,
Jun 23, 2025, 11:31:27 AMJun 23
to Abby Yeung, R package GGIR
Dear Abby,

If you use non-raw data (counts) the default sleep detection algorithms do not work as they rely on angle to be extracted from the (raw) data.

So, you would have to select an alternative algorithms. I am not sure how to detect sleep from ActiGraph count data as I have not worked with this that much. Maybe try:
HASIB.algo = "Sadeh1994" and HASPT.algo = "HLRB"

Best,
Vincent

Dr. Vincent van Hees | Independent consultant | https://accelting.com/
image

--
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, visit https://groups.google.com/d/msgid/RpackageGGIR/c2de3880-3a8c-4d9d-bfc2-d9a9fa143c05n%40googlegroups.com.

Vincent van Hees

unread,
Jun 23, 2025, 11:33:06 AMJun 23
to 奥田昌之, R package GGIR
Good point Masayuki,

If you use ActiGraph GT9X you should be able to store the raw data, which has gt3x file extension and is much bigger in file size compared with the 60 second files.

Best,

Vincent

--
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.

Abby Yeung

unread,
Jun 23, 2025, 12:25:16 PMJun 23
to R package GGIR
Thank you, Vincent and Masayuki,

I will try to use the raw data file! thanks 

Abby
Reply all
Reply to author
Forward
0 new messages