## ----setup, include=FALSE----------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----------------------------------------------------------------------------- library(HLCtools) data(example_lies) example_lies ## ----------------------------------------------------------------------------- str(example_lies) ## ----------------------------------------------------------------------------- hlc_intervals <- calculate_hlc( data = example_lies, group = group, animal = cow, day = day, period = week, interval = time, lying = lying, interval_min = 15, methods = c("sd", "mad", "iqr", "entropy"), sync_thresholds = c(0.6, 0.7, 0.8, 0.9), add_lying_weighted = TRUE ) hlc_intervals ## ----------------------------------------------------------------------------- hlc_daily <- summarise_hlc_daily( data = hlc_intervals, group = group, day = day, period = week, interval_min = 15 ) hlc_daily ## ----------------------------------------------------------------------------- rank_hlc_methods( data = hlc_daily, group = group, period = week, lying_prop = mean_lying_prop ) ## ----------------------------------------------------------------------------- hlc_methods() ## ----------------------------------------------------------------------------- citation("HLCtools")