PP_gam_analysis: Analyse Pulse Pressure data using a GAM Respiratory cycle...

View source: R/gam_tools.R

PP_gam_analysisR Documentation

Analyse Pulse Pressure data using a GAM Respiratory cycle length is found by using the value that minimizes model REML score

Description

Analyse Pulse Pressure data using a GAM Respiratory cycle length is found by using the value that minimizes model REML score

Usage

PP_gam_analysis(
  data,
  plot = FALSE,
  return_GAM = FALSE,
  PP_col = "PP",
  time_col = "time",
  search_interval = c(1.5, 7)
)

Arguments

data

Data frame of timings and pulse pressures of beats

plot

Diagnostic GAM plot usign gratia::draw

return_GAM

Return fitted GAM instead of data frame

PP_col

Column with pulse pressure values

time_col

Columns with times

search_interval

Respiratory cycle length intervals to search

Value

Data frame of respiratory cycle length, respiratory rate and PPV.


JohannesNE/waveformtools documentation built on July 1, 2022, 8:48 p.m.