Learn R Programming

PAactivPAL (version 2.0)

MVPA: Moderate to Vigorous Physical Activity Summary

Description

Summarize moderate to vigorous activity measures

Usage

MVPA(final_dat, bed_time, takeoff_time)

Arguments

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.

Value

Year The calendar year of recorded eventMonth The calendar month of recorded eventDay The calendar day of recorded eventDayofweek The day of that weekWeekday_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 hoursTotal_MVPA_time Total MVPA hours: summation of the total long bouts MVPA and total sporadic MVPA durationsTotal_MVPA_Long_Bout_time Total MVPA long bout time: summation of the total long bouts MVPA durationsTotal_mvpa_sporadic_time Total MVPA sporadic time: summation of the total sporadic MVPA durationsTotal_Number_of_MVPA_Long_Bouts_and_Sporadic Total Number of MVPA (long bouts or sporadic): count the number of MVPA from 15 second dataProportion_of_MVPA_Long_Bouts_and_Sporadic_greater_2 Proportion of MVPA (long bouts or sporadic) greater than 2 minutesProportion_of_MVPA_Long_Bouts_and_Sporadic_greater_5 Proportion of MVPA (long bouts or sporadic) greater than 5 minutesProportion_of_MVPA_Long_Bouts_and_Sporadic_greater_10 Proportion of MVPA (long bouts or sporadic) greater than 10 minutesTotal_Number_of_MVPA_Long_Bouts Total number of long bouts MVPA: count the number of long bouts MVPA from 10 minute dataMean_MVPA_Long_Bout_Length Mean of long bout MVPA lengthProportion_of_MVPA_Long_Bouts_greater_10 Proportion of long bouts MVPA greater than 10 minutesProportion_of_MVPA_Long_Bouts_greater_20 Proportion of long bouts MVPA greater than 20 minutesHighest_MET_value_15s Highest METs values in 15 secondHighest_MET_value_10min Highest METs values in 10 minutesTotal_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 recordsTotal_MET_hrs_Long_Bouts Total METs hours from long bouts MVPA: the summation of METs hours from long bouts MVPA records

Details

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.

Examples

Run this code
#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)

Run the code above in your browser using DataLab