R/validate_kid.R
validate_kid.RdFollowing 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
)A data frame created by sim_kid().
Logical TRUE or FALSE matching the sim_kid() input
option used. Default of FALSE.
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.
Numeric between 0 and 1 specifying the simulated data
transparency in validation plots. Default of 0.4.
A list of 5 'ggplot2' plot objects.
demo0 <- sim_kid() # single subject
validation_plots <- validate_kid(data = demo0)