# NOT RUN {
# will warn if given age is not in validate range from publication:
# }
# NOT RUN {
ideal_weight_child(height_m = 0.5, age_y = 0, do_warn = TRUE)
ideal_weight_child(0.8, age_y = 11 / 12, do_warn = TRUE)
ideal_weight_child(0.5, age_y = 25/365, do_warn = TRUE)
# }
# NOT RUN {
ideal_weight_child(0.5, age_y = 25 / 365, do_warn = FALSE)
ideal_weight_child(1, age_y = 2)
# }
Run the code above in your browser using DataLab