flag_choi_HR | R Documentation |
Apply Choi et al nonwear algorithm to HR
flag_choi_HR( HR, min_period_len = 90, spike_tolerance = 2, min_window_len = 30, window_spike_tolerance = 0 )
HR |
a numeric vector containing Fitbit HR for a subject. |
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(). |
Modifying activity_threshold param is not optional because the presence of HR is binary.
nonwear vector, non wear time encoded as T, and wear time encoded as F.
## Not run: minute_data %>% group_by(id) %>% mutate(HR = flag_choi_HR(HR)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.