flag_choi_steps | R Documentation |
Apply Choi et al nonwear algorithm to steps
flag_choi_steps( steps, activity_threshold = 1, min_period_len = 90, spike_tolerance = 2, min_window_len = 30, window_spike_tolerance = 0 )
steps |
a numeric vector containing Fitbit steps for a subject. |
activity_threshold |
same as in flag_choi(), the difference is that the default activity threshold is specifically set for Fitbit steps to 1, however modifying the value is still optional. |
min_period_len |
same as in flag_choi(). |
spike_tolerance |
same as in flag_choi(). |
min_window_len |
same as in flag_choi(). |
window_spike_tolerance |
same as in flag_choi(). |
nonwear vector, non wear time encoded as T, and wear time encoded as F.
## Not run: minute_data %>% group_by(id) %>% mutate(nonwear = flag_choi_steps(steps)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.