# NOT RUN {
height <- seq(1, 2, 0.05)
male <- rep(FALSE, length(height))
iw <- ideal_weight_adult(height_m = height, male = male)
# }
# NOT RUN {
plot(iw, deadspace_anatomic_adult(ideal_weight_kg = height))
# }
# NOT RUN {
# discontinuity at age 6 is driven by ideal weight more than the
# lograithmic calculation
iw <- c(seq(12, 18, 0.2), seq(18.5, 24, 0.5))
youngest = 3
oldest = 9
ages <- seq(youngest, oldest, (oldest - youngest) / (length(iw) - 1))
# }
# NOT RUN {
plot(iw, deadspace_anatomic_child(ideal_weight_kg = iw, age_y = ages),
type = "l")
# }
Run the code above in your browser using DataLab