Sedentary(final_dat, bed_time, takeoff_time)
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)break_per_day
Number of interrupting sedentary behavior during the given period of timebreak_rate
Rate of interrupting sedentary behaviormean_sed_bout_length
Mean sedentary bout length. It is the average of the duration time for all sedentary activitiesprop_of_sed_time_greater_20min
Proportions of sedentary bout greater than 20 minutesprop_of_sed_time_greater_60min
Proportions of sedentary bout greater than 60 minutesprop_of_sed_time_greater_120min
Proportions of sedentary bout greater than 120 minutestotal_sed_time_greater_20min
Total sedentary time greater than 20 minutestotal_sed_time_greater_60min
Total sedentary time greater than 60 minutestotal_sed_time_greater_120min
Total sedentary time greater than 120 minutespercentile_sed_time_5
5% Percentile of sedentary timepercentile_sed_time_25
25% Percentile of sedentary timepercentile_sed_time_50
50% Percentile of sedentary timepercentile_sed_time_75
75% Percentile of sedentary timepercentile_sed_time_95
95% Percentile of sedentary timealpha_sed
alpha of sedentary time, see detailsprop_sed_time_6_12
Proportions of sedentary time between 6:00-12:00prop_sed_time_12_18
Proportions of sedentary time between 12:00-18:00prop_sed_time_18_22
Proportions of sedentary time between 18:00-22:00sed_time_in_30_and_60
Minutes Spent in Sitting/Lying Bouts (at least 30 and less 60 minutes in duration)sed_num_in_30_and_60
Number of in Sitting/Lying Bouts (at least 30 and less 60 minutes in duration)
Total sedentary time greater than 20/60/120 minutes is the summation of the sedentary durations which are greater than 20/60/120 minutes.
To calculate 5%/25%/75%/95% percentile of sedentary time, all of the recorded sedentary durations are listed and R function quantile is used to find the percentiles.
alpha_sed is defined by 1+1/M
, where M
is the average of log(sedentary bout length /minimum sedentary bout length)
.
Proportions of sedentary time between 6:00-12:00/12:00-18:00/18:00-22:00 is the ratio of the sedentary durations to the total activity durations between 6:00-12:00/12:00-18:00/18:00-22:00.
#For CRAN less than 5s running time policy, we only select the first day to run.
r2=Sedentary(sample_event[1:3095,],sample_bed_time[1,],sample_takeon_log[1,])
summary(r2)
Run the code above in your browser using DataLab