calculate_classic_ppv: Calculate PPV using simple algorithm

View source: R/calculate_PPV.R

calculate_classic_ppvR Documentation

Calculate PPV using simple algorithm

Description

This function attempt to calculate PPV as described by De Backer, 2009.

Usage

calculate_classic_ppv(
  beats,
  PP_col = "PP",
  time_col = 1,
  resp_rate = NULL,
  resp_len = NULL,
  average_over_n = 3,
  average_fun = mean,
  plot_diagnostic = FALSE
)

Arguments

beats

Data frame of beats incl. pulse pressure

PP_col

Column containing pulse pressure

time_col

Column containing time (datetime or seconds)

resp_rate

Either resp_rate (breaths/min) or resp_len (seconds)

resp_len

Either resp_rate (breaths/min) or resp_len (seconds)

average_over_n

Number of max-min pairs (resp cycles) to average over

average_fun

Function used for averaging

plot_diagnostic

Show diagnostic plot


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