Skip to contents

Convenience wrapper combining estimate_ee() and classify_pa_intensity() in one call: converts raw ActTrust(R)/GT3X+ activity counts straight to a PA intensity factor via the published "batista2026" (or future) equation set, without needing to handle the intermediate MET values.

Usage

classify_pa_counts(
  counts,
  device = c("ACTT", "GT3X+"),
  placement = c("hip", "wrist"),
  equation_set = "batista2026"
)

Arguments

counts

Numeric vector of activity counts (counts/min, over the same epoch length used by the source equation set – 1-minute for "batista2026"). Negative values are treated as 0 with a warning, since the underlying square-root transform is undefined below zero.

device

character(1). "ACTT" (default) or "GT3X+".

placement

character(1). "hip" (default) or "wrist".

equation_set

character(1), passed to pa_equations(). Default "batista2026".

Value

An ordered factor, same length as counts and same levels as classify_pa_intensity().

See also

estimate_ee(), classify_pa_intensity(), pa_equations() for the coefficients and their generalisability caveats.

Examples

classify_pa_counts(c(0, 5000, 25000, 50000), device = "ACTT", placement = "hip")
#> [1] light         light         vigorous      very_vigorous
#> Levels: light < moderate < vigorous < very_vigorous