--
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 post to this group, send email to Rpacka...@googlegroups.com.
Visit this group at https://groups.google.com/group/RpackageGGIR.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/1e8b75ae-d4ef-48c4-be4e-6fc0b68e1f85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/75d998c4-4c66-45e6-8ba6-2827cb9c7528%40googlegroups.com.
Dear Vincent and Christopher,
thank you for this useful discussion that has really helped me to figure out how to do the same that Christopher is seeking to do: get activity classification as a function of time. (And, thank you, Vincent, for creating the GGIR analysis in the first place!)
To make sure I'm doing things correctly, I compared the daily activity derived from the files in the ms5.outraw folder to those in the "part5_daysummary_WW_L30M100.6V428.8_T5A5.csv" file in the Results folder and noticed that there are some differences. Generally, there are some more sedentary time and less time in LPA and MVPA when derived from the csv files in the ms5.outraw folder compared to the results file. The differences are sometimes only a couple of minutes but can be up to 20-30 min/day. Usually the differences add up to zero, so the duration of the day is the same. Would you have any idea where these differences come from?
Below I try to explain how I made the comparison, maybe there's something that I'm not doing correctly:
In part 5, I'm only using one bout duration to make things simpler:
#-------------------------------
This gives me class_id between 0-12 which I assume mean:
0 = Sleep period time + sleep
1 = Sleep period time + wakefulness (minimal movement)
2 = Sleep period time + wakefulness + light activity
3 = Sleep period time + wakefulness + moderate activity
4 = Sleep period time + wakefulness + vigorous activity
5 = Daytime + sustained inactivity
6 = Daytime + other inactivity
7 = Daytime + light activity
8 = Daytime + moderate activity
9 = Daytime + vigorous activity
10 = Daytime + MVPA bout, 1 min length
11 = Daytime + Inactivity bout, 1 min length
12 = Daytime + Light activity bout, 1 min length
To compare sedentary time, I compare (5+6+11)/12 (to change 5s epochs into 1 minute time) to dur_TINday_min in the results file.
LPA: (7+12)/12 to dur_TLIGday_min in the results file.
MVPA: (8+9+10)/12 to dur_TMODday_min+dur_TVIGday_min in the results file
Duration of the day: minutes in SED + LPA + MVPA compared to dur_day_min in results (these are usually the same, which I guess means that I'm defining the days correctly)
Best regards and thank you again!
Anna