bp_cdf {pedbp}R Documentation

Plot the CDF for Blood Pressure

Description

Plot the CDF for blood pressure given age, sex, and height.

Usage

bp_cdf(
  age,
  male,
  height = NA,
  height_percentile = 0.5,
  sbp = NA,
  dbp = NA,
  ...
)

Arguments

age

numeric age, in months

male

integer value, 1 = male, 0 = female, indicating sex of the patient

height

numeric, in centimeters, can be missing. This is the length for patients under three years of age

height_percentile

default height percentile to use if height is missing.

sbp, dbp

observed values to plot on the CDF

...

not currently used

Value

a ggplot2 graphic showing the CDF for diastolic and systolic blood pressures with vertical and horizontal lines highlight the percentile for the given inputs.

Examples

bp_cdf(age = 96, male = 1, sbp = 103, dbp = 55)


[Package pedbp version 1.0.2 Index]