hibbing-helpers: Apply a Hibbing 2018 two-regression algorithm

hibbing-helpersR Documentation

Apply a Hibbing 2018 two-regression algorithm

Description

Applies the specified two-regression algorithm from Hibbing et al. (2018, Med Sci Sports Exerc) to data from the primary accelerometer and IMU (if applicable)

Usage

apply_two_regression_hibbing18(
  which_algorithm = data.frame(Wear_Location = "Hip", Algorithm = 1),
  AG,
  verbose = FALSE,
  ...
)

Arguments

which_algorithm

a dataframe specifying which algorithm to use, based on Wear_Location and Algorithm columns

AG

data frame of ActiGraph data

verbose

logical. Print updates to console?

...

arguments passed to predict.TwoRegression

Value

a numeric vector of predicted energy expenditure values, expressed in metabolic equivalents

Examples


data(all_data, package = "TwoRegression")
process  <-
    data.frame(Wear_Location = "Left Wrist",
        Algorithm = 2,
        stringsAsFactors = FALSE)

TwoRegression:::apply_two_regression_hibbing18(process, all_data)



paulhibbing/TwoRegression documentation built on July 9, 2023, 2:57 a.m.