Description Usage Arguments Details Value Examples

Summarize moderate to vigorous activity measures

1 | ```
MVPA(final_dat, bed_time, takeoff_time)
``` |

`final_dat` |
Raw event file, will be cleaned in this function. Event file is required for this function. |

`bed_time` |
Sleep and wake up time log, reported by participants. Log is not required for this function. |

`takeoff_time` |
Take on and off time log, reported by participants. Log is not required for this function. |

MVPA is defined into two types: long bout MVPA and sporadic MVPA. Long bout MVPA is defined as 10 consecutive minutes with METs>=3 (allowing 2 min below that threshold). Sporadic MVPA is defined as activities at any time with METS>=3 and they are not in long bouts MVPA.

Highest METs values in 15 second/10 minutes are calculated by picking up the maximum METs values from the combined data with 15 second intervals and the data with 10 minutes intervals, respectively.

Function `MVPA()`

takes longer running time than other functions as its nature of more complex calculation.

`Year`

The calendar year of recorded event

`Month`

The calendar month of recorded event

`Day`

The calendar day of recorded event

`Dayofweek`

The day of that week

`Weekday_or_weekend`

The recored event date is a weekday or weekend (0 for weekday, 1 for weekend)

`Total_light_time`

Total light time: total activity minutes minus the total MVPA hours

`Total_MVPA_time`

Total MVPA hours: summation of the total long bouts MVPA and total sporadic MVPA durations

`Total_MVPA_Long_Bout_time`

Total MVPA long bout time: summation of the total long bouts MVPA durations

`Total_mvpa_sporadic_time`

Total MVPA sporadic time: summation of the total sporadic MVPA durations

`Total_Number_of_MVPA_Long_Bouts_and_Sporadic`

Total Number of MVPA (long bouts or sporadic): count the number of MVPA from 15 second data

`Proportion_of_MVPA_Long_Bouts_and_Sporadic_greater_2`

Proportion of MVPA (long bouts or sporadic) greater than 2 minutes

`Proportion_of_MVPA_Long_Bouts_and_Sporadic_greater_5`

Proportion of MVPA (long bouts or sporadic) greater than 5 minutes

`Proportion_of_MVPA_Long_Bouts_and_Sporadic_greater_10`

Proportion of MVPA (long bouts or sporadic) greater than 10 minutes

`Total_Number_of_MVPA_Long_Bouts`

Total number of long bouts MVPA: count the number of long bouts MVPA from 10 minute data

`Mean_MVPA_Long_Bout_Length`

Mean of long bout MVPA length

`Proportion_of_MVPA_Long_Bouts_greater_10`

Proportion of long bouts MVPA greater than 10 minutes

`Proportion_of_MVPA_Long_Bouts_greater_20`

Proportion of long bouts MVPA greater than 20 minutes

`Highest_MET_value_15s`

Highest METs values in 15 second

`Highest_MET_value_10min`

Highest METs values in 10 minutes

`Total_MET_hrs_Long_Bouts_and_Sporadic_mvpa`

Total METs hours from long bouts MVPA and sporadic MVPA: the summation of METs hours from all MVPA records

`Total_MET_hrs_Long_Bouts`

Total METs hours from long bouts MVPA: the summation of METs hours from long bouts MVPA records

1 2 3 | ```
#For CRAN less than 5s running time policy, we only select the first day to run.
r3=MVPA(sample_event[1:3095,],sample_bed_time[1,],sample_takeon_log[1,])
summary(r3)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.