Following creation of a virtual population using sim_kid(), overlay scatter plots are used to validate that the virtual population is reflective of the respective anthropometric growth chart data.

validate_kid(
  data = NULL,
  age0isbirth = FALSE,
  overlay_percentile = NA,
  alpha = 0.4
)

Arguments

data

A data frame created by sim_kid().

age0isbirth

Logical TRUE or FALSE matching the sim_kid() input option used. Default of FALSE.

overlay_percentile

NA (default) for no ribbon overlay of simulated percentiles. Or a numeric greater than 0 and less than 1 specifying the simulated percentile interval to overlay. For example, input of 0.90 would overlay the 5th and 95th percentiles of simulated data.

alpha

Numeric between 0 and 1 specifying the simulated data transparency in validation plots. Default of 0.4.

Value

A list of 5 'ggplot2' plot objects.

Examples

demo0 <- sim_kid() # single subject
validation_plots <- validate_kid(data = demo0)