sb_profile_Hibbing2021: Apply the SB profiles of Hibbing et al. (2021)

View source: R/sb_profile__Hibbing2021a__main.R

sb_profile_Hibbing2021R Documentation

Apply the SB profiles of Hibbing et al. (2021)

Description

Apply the SB profiles of Hibbing et al. (2021)

Usage

sb_profile_Hibbing2021(object, method = "Hibbing_2021", ...)

## S3 method for class 'bouts'
sb_profile_Hibbing2021(
  object,
  method = "Hibbing_2021",
  model = c("both", "decisionTree", "randomForest"),
  ...
)

## S3 method for class 'data.frame'
sb_profile_Hibbing2021(
  object,
  method = "Hibbing_2021",
  model = c("both", "decisionTree", "randomForest"),
  id = NULL,
  counts = NULL,
  wear = NULL,
  sb = 100,
  valid_indices = NULL,
  ...
)

## S3 method for class 'list'
sb_profile_Hibbing2021(
  object,
  method = "Hibbing_2021",
  model = c("both", "decisionTree", "randomForest"),
  ...
)

Arguments

object

input (either data frame or output from profile_describe_sb)

method

character. The profile method to use (currently only supports "Hibbing_2021").

...

further arguments passed to profile_describe_sb (used only in data frame method)

model

character. The model(s) to use for the prediction

id

character scalar (optional). Column name on which to divide object (if a data frame) into a list of separate objects

counts

character scalar. Column name of the variable to use when classifying sedentary behavior (and wear time, depending on the function)

wear

character scalar [optional]. Column name of the variable to use for determining wear time (logical vector with TRUE for wear time minutes). If no value is provided, profile_choi_wear is invoked on the counts column

sb

numeric. The cut point to use for classifying sedentary behavior

valid_indices

[optional] numeric/integer/logical vector specifying which indices of is_sb and is_wear correspond to valid measurement days (e.g. with 10+ hours of wear time on 4+ days). The default (NULL) assumes all elements are valid

See Also

Hibbing et al. (2021)


paulhibbing/PBpatterns documentation built on Feb. 17, 2024, 5:34 a.m.