SLI(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)total_number_of_activity_bouts Total events that are standing or steppingtotal_number_of_activity_bouts Total number of events that are standing or steppingmean_activity_bout_length Average length of activity boutprop_of_activity_time_greater_5min The ratio of the number of active bouts greater than 5 min to the total number of active eventsprop_of_activity_time_greater_10min The ratio of the number of active bouts greater than 10 min to the total number of active events.prop_of_activity_time_greater_30min The ratio of the number of active bouts greater than 30 min to the total number of active events.total_activity_time_greater_5min The summation of the active durations which are greater than 5 mintotal_activity_time_greater_10min The summation of the active durations which are greater than 10 mintotal_activity_time_greater_30min The summation of the active durations which are greater than 30 minpercentile_activity_time_5 5% percentile of activity bouth lengthpercentile_activity_time_25 25% percentile of activity bout lengthpercentile_activity_time_50 50% percentile of activity bout lengthpercentile_activity_time_75 75% percentile of activity bout lengthpercentile_activity_time_95 95% percentile of activity bout lengthalpha_activity alpha of activity time, see detailsstepping_to_standing_ratio Ratio of stepping to standing, the ratio of total stepping hours to standing hours
alpha_activity is defined by 1+1/M, where M is the average of log(activity bout length /minimum activity bout length)
#For CRAN less than 5s running time policy, we only select the first day to run.
r4=SLI(sample_event[1:3095,],sample_bed_time[1,],sample_takeon_log[1,])
summary(r4)
Run the code above in your browser using DataLab