gp_impute_driver: Internal utility that aggregates data and settings needed to...

Description Usage Arguments Value

View source: R/fct_gp_impute_Bayes.R

Description

This could use a considerable refactor - need to back through and break up a lot of these complicated functions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
gp_impute_driver(
  iter = NULL,
  warmup = NULL,
  adapt_delta = NULL,
  time_min = NULL,
  time_max = NULL,
  ppg_data = NULL,
  ibi_data = NULL,
  respiration_cat = NULL,
  ds = NULL,
  selected_ibis = NULL,
  ppg_col = "PPG",
  ibi_col = "IBI",
  time_col = "Time",
  expansion_factor = 3
)

Arguments

iter

number of iterations per chain

warmup

number of warmup iterations

adapt_delta

parameter passed to rstan call

time_min

lower boundary of the time window for imputation

time_max

upper boundary of the time window for imputation

ppg_data

the processed PPG data.frame be used in the analysis

ibi_data

the IBI data used to define priors for the imputation model

respiration_cat

the population age group used to define the respiration range

ds

the downsampled sampling rate for the PPG data

selected_ibis

IBI values that will be used in setting the priors (defined by a combination of the expansion factor and the individual respiration rate.

ppg_col

column name in ppg_data that contains the PPG signal data. Default is "PPG".

ibi_col

column name in ibi_data that contains the IBI series

time_col

defaults to "Time" and represents the synchronized time values for the ppg_data and ibi_data

expansion_factor

is the number of respiration cycles to use in setting the data used to define the paramters in the imputation model

Value

applies a series of helper function and returns a list of values that are used to define the Gaussian process imputation model.


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