generate_model_ppg_inputs: Internal utility for generating imputation input data

Description Usage Arguments Value

View source: R/fct_gp_impute_core.R

Description

generate_model_ppg_inputs is used to generate a data.frame that contains an appropriately down-sampled set of "Time" and "PPG" inputs for the imputation model. These inputs represent PPG data that "surrounds" the window selected for imputation. The size of the window is dynamically determined for each participant based on average respiration rate (derived from estimate_avg_respiration()).

Usage

1
2
3
4
5
6
7
8
9
generate_model_ppg_inputs(
  time_min = NULL,
  time_max = NULL,
  ppg_data = NULL,
  ds = NULL,
  input_windows = NULL,
  ppg_col = "PPG",
  time_col = "Time"
)

Arguments

time_min

lower boundary of the time window that defines the PPG data selected for imputation

time_max

upper boundary of the time window that defines the PPG data selected for imputation

ppg_data

data.frame that contains the PPG data

ds

downsampled sampling rate in Hz

input_windows

a list that contains the pre and post timing boundaries for the input data used in the imputation model

ppg_col

name of the column in the PPG data.frame that contains the PPG signal

time_col

name of the column in the PPG data.frame that contains timing information in seconds

Value

a set of inputs for the imputation model


dr-consulting/ibi_VizEdit documentation built on Jan. 1, 2021, 12:04 a.m.