# \donttest{
ln_quantile_value(c(0.05, 0.5, 0.95), 50, "male", "WBC")
ln_quantile_value(
c(0, 0.05, 0.1, 0.4, 0.5, 0.6, 0.9, 1),
c(50, 60),
c("male", "female"),
"Glucose"
)
# }
# on the demo data
# \dontshow{
ln_quantile_value(c(0.05, 0.5, 0.95), 50, "male", "WBC", reference = "Clalit-demo")
# }
# \donttest{
hemoglobin_data$quantile <- ln_normalize(
hemoglobin_data$value,
hemoglobin_data$age,
hemoglobin_data$sex,
"Hemoglobin"
)
hemoglobin_data$value1 <- ln_patients_quantile_value(
hemoglobin_data$quantile,
hemoglobin_data$age,
hemoglobin_data$sex,
"Hemoglobin"
)
head(hemoglobin_data)
# }
# \dontshow{
hemoglobin_data$quantile <- ln_normalize(
hemoglobin_data$value,
hemoglobin_data$age,
hemoglobin_data$sex,
"Hemoglobin",
reference = "Clalit-demo"
)
hemoglobin_data$value1 <- ln_patients_quantile_value(
hemoglobin_data$quantile,
hemoglobin_data$age,
hemoglobin_data$sex,
"Hemoglobin",
reference = "Clalit-demo"
)
head(hemoglobin_data)
# }
Run the code above in your browser using DataLab