Simulate with individual parameters or population parameters (considering covariates) and plot the result

Simulate with individual parameters or population parameters (considering covariates) and plot the result

plotMEANSIM_IQRnlmeProject(
  proj,
  data = NULL,
  simtime = NULL,
  split_by = NULL,
  color_by = NULL,
  lty_by = NULL,
  shape_by = NULL,
  normalize_by = NULL,
  bin_by = NULL,
  log = FALSE,
  cens = TRUE,
  output = 1,
  reltime = FALSE,
  show_data = TRUE,
  show_mean = TRUE,
  show_CI = TRUE,
  show_logy = TRUE,
  show_logx = FALSE,
  parameters = c("population", "individual"),
  xlab = NULL,
  ylab = NULL,
  ...
)

Arguments

proj

IQRnlmeProject

data

optional data. By default the dataset of the NLME project.

simtime

Numeric vector of simuation times or list of simulation times. List must be named and all unique elements of the splity_by column must be contained.

split_by

character indicating the data column by which the plots are split in separate plots

color_by

character indicating columns (1 or more) by which simulations and data are stratified and shown in different colours

lty_by

character indicating columns (1 or more) by which simulations are stratified and shown in different linetypes

shape_by

character indicating columns (1 or more) by which data is stratified and shown with different shapes

normalize_by

character indicating the column by which the data (DV) and simulations are normalized.

bin_by

character or NULL (default). If provided, the indicated column will be used for binning of data. DV values for the same entry in the binning column will be pooled and their mean will be computed. Values below the limit of quantification will be considered using the M3 method (see function norm_M3).

log

logical, indicating if log-data was used for the fit.

cens

logical, indicating if censored data should be shown

output

numeric, output number (YTYPE)

reltime

logical, indicating if time should be relative to the first simulated time point

show_data

logical, show data in the plots

show_mean

logical, show mean simulations in the plots

show_CI

logical, show the 5% to 95%% inter-quantile range in the plots

show_logy

logical, show y values on log-axis (TRUE by default)

show_logx

logical, show x values on log-axis (FALSE by default)

parameters

character or data.frame. If character, "population" (use population parameters considering the impact of covariates) or "individual" (use individually estimated parameters) paramter are used. Alternatively, the parameters per subject can be provided via a data.frame (columns ID + parameter columns)

xlab

custom x-axis label

ylab

custom y-axi label

...

Arguments going to sim_IQRmodel(), e.g. integrator tolerances.

Value

List of ggplot objects

See also

Other IQRnlmeProject: IQRnlmeEst(), IQRnlmeProject(), addCovariateToModelSpec_IQRest(), addPar_modelSpec(), as_IQRnlmeProject(), as_IQRnlmeProjectMulti(), bootstrap_IQRnlmeProject(), compareModels_IQRnlmeProjectMulti(), convertETAINDIVPRED_IQRnlmeProject(), covariateEffect_IQRnlmeProject(), data_IQRest(), dosing_IQRest(), duplicate_IQRnlmeProject(), eigenvalues_IQRnlmeProject(), exportVirtualSubjects_IQRnlmeProject(), getData_IQRnlmeProject(), getETAs_IQRnlmeProject(), getEst_IQRnlmeProject(), getHeader_IQRnlmeProject(), getIndivParameters_IQRnlmeProject(), getIndivPredictions_IQRnlmeProject(), getModel_IQRnlmeProject(), getObsPred_IQRnlmeProject(), getPopParameters_IQRnlmeProject(), getResults_IQRnlmeProject(), getResults_IQRnlmeProjectMulti(), hasrun_IQRnlmeProject(), hasrun_IQRnlmeProjectMulti(), informationContent_IQRnlmeProject(), is_IQRnlmeEst(), is_IQRnlmeProject(), is_IQRnlmeProjectMulti(), is_MONOLIX_IQRnlmeProject(), is_NLMIXR_IQRnlmeProject(), is_NONMEM_IQRnlmeProject(), modelSpec_IQRest(), outlier_IQRnlmeProject(), plot.IQRnlmeProject(), plot.IQRnlmeProjectMulti(), plotBLQVPC_IQRdataVPC(), plotConvergence_IQRnlmeProject(), plotETACOV_IQRnlmeProject(), plotETA_IQRnlmeProject(), plotGOF_IQRnlmeProject(), plotINDIVSIM_IQRnlmeProject(), plotINDIV_IQRnlmeProject(), plotVPC_IQRdataVPC(), pred_IQRnlmeProject(), print.IQRnlmeEst(), print.IQRnlmeProject(), print.IQRnlmeProjectMulti(), print_modelSpec(), run_IQRnlmeProject(), run_IQRnlmeProjectMulti(), sample_IQRnlmeProject(), scm_IQRnlmeProject(), summary.IQRnlmeProject(), summary.IQRnlmeProjectMulti(), summaryComments_IQRnlmeProjectMulti(), summaryCorrelations_IQRnlmeProjectMulti(), summaryCovariates_IQRnlmeProjectMulti(), summaryParameters_IQRnlmeProjectMulti(), vpc_IQRnlmeProject()