Description Usage Arguments Details Value Examples

View source: R/Sedentary_summary.R

Summarize sedentary features using proportions and percentiles

1 | ```
Sedentary(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. |

Proportions of sedentary bout greater than 20/60/120 minutes is the ratio of the number of sedentary bouts greater than 20/60/120 minutes to the total number of sedentary recordings.

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.

`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)

`break_per_day`

Number of interrupting sedentary behavior during the given period of time

`break_rate`

Rate of interrupting sedentary behavior

`mean_sed_bout_length`

Mean sedentary bout length. It is the average of the duration time for all sedentary activities

`prop_of_sed_time_greater_20min`

Proportions of sedentary bout greater than 20 minutes

`prop_of_sed_time_greater_60min`

Proportions of sedentary bout greater than 60 minutes

`prop_of_sed_time_greater_120min`

Proportions of sedentary bout greater than 120 minutes

`total_sed_time_greater_20min`

Total sedentary time greater than 20 minutes

`total_sed_time_greater_60min`

Total sedentary time greater than 60 minutes

`total_sed_time_greater_120min`

Total sedentary time greater than 120 minutes

`percentile_sed_time_5`

5% Percentile of sedentary time

`percentile_sed_time_25`

25% Percentile of sedentary time

`percentile_sed_time_50`

50% Percentile of sedentary time

`percentile_sed_time_75`

75% Percentile of sedentary time

`percentile_sed_time_95`

95% Percentile of sedentary time

`alpha_sed`

alpha of sedentary time, see details

`prop_sed_time_6_12`

Proportions of sedentary time between 6:00-12:00

`prop_sed_time_12_18`

Proportions of sedentary time between 12:00-18:00

`prop_sed_time_18_22`

Proportions of sedentary time between 18:00-22:00

`sed_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)

1 2 3 | ```
#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)
``` |

```
$call
Sedentary.default(final_dat = sample_event[1:3095, ], bed_time = sample_bed_time[1,
], takeoff_time = sample_takeon_log[1, ])
$Table
Year Month Day Dayofweek Weekday_or_weekend break_per_day break_rate
year 2000 1 1 6 0 11 2.207702428
mean_sed_bout_length prop_of_sed_time_greater_20min
year 0.452959596 36.36363636
prop_of_sed_time_greater_60min prop_of_sed_time_greater_120min
year 18.18181818 9.090909091
total_sed_time_greater_20min total_sed_time_greater_60min
year 4.393305556 3.228972222
total_sed_time_greater_120min percentile_sed_time_5 percentile_sed_time_25
year 2.167277778 0.007958333333 0.03169444444
percentile_sed_time_50 percentile_sed_time_75 percentile_sed_time_95
year 0.1746111112 0.5821666667 1.614486111
alpha_sed prop_sed_time_6_12 prop_sed_time_12_18 prop_sed_time_18_22
year 1.325474465 75.65161002 0 0
sed_time_in_30_and_60 sed_num_in_30_and_60
year 69.86 2
attr(,"class")
[1] "summary.Sedentary"
```

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.