# using the example data set
phoenix_coagulation(
platelets = platelets,
inr = inr,
d_dimer = d_dimer,
fibrinogen = fibrinogen,
data = sepsis
)
# build a data.frame with values for all possible combationations of values
# leading to all possible coagulation scores.
DF <-
expand.grid(plts = c(NA, 20, 100, 150),
inr = c(NA, 0.2, 1.3, 1.8),
ddmr = c(NA, 1.7, 2.0, 2.8),
fib = c(NA, 88, 100, 120))
DF$coag <- phoenix_coagulation(plts, inr, ddmr, fib, DF)
DF
Run the code above in your browser using DataLab