fitibble: fitibble

View source: R/fitibble.R

fitibbleR Documentation

fitibble

Description

fitibble

Usage

fitibble(
  .data,
  intensity_colname = "intensity",
  intensity_levels = c(sedentary = "0", light = "1", moderate = "2", active = "3"),
  nonwear_method = c("missing_HR", "missing_HR_zero_steps", "choi_HR", "choi_steps"),
  nonwear_args = list(),
  adherent_method = c("adherent_hours_between"),
  adherent_args = list(),
  valid_day_method = c("valid_adherent_hours", "valid_step_count"),
  valid_day_args = list()
)

Arguments

.data

A tibble containing id | time | HR | steps | intensity. The intensity column can have another name, specified by intensity_col. It can be the output of prepare_minute_data() or a tibble or data.frame with columns id (character)| time (POSIXct yyyy-mm-dd HH:MM:SS) |HR (numeric)|steps (numeric) and with minute-level values in each row. It is necessary that for each participant the minute sequence has no gaps and missing records should be entered as NA.

intensity_colname

a character entry indicating the name of the column that contains the intensity of each minute reading in .data.

intensity_levels

a named character vector indicating the labels and levels of the intensity categories in intensity_col.

nonwear_method

one of the following "missing_HR", "missing_HR_zero_steps", "choi_HR", "choi_steps" or "none".

nonwear_args

additional parameters that go into the nonwear method.

adherent_method

one of the following "adherent_hours_between" (other adherence rule could be integrated into the package).

adherent_args

additional parameters that go into the adherent method.

valid_day_method

one of the following "valid_adherent_hours" or "valid_step_count".

valid_day_args

additional parameters that go into the valid day method.

Details

Prepares a fitibble object.

Value

a fitibble, an object containing arguments that are useful for generating physical activity summaries from Fitbit data.


audiracmichelle/fitibble documentation built on Feb. 2, 2023, 3:51 p.m.