plot_vpc: Visual Prediction Check

View source: R/Plot_vpc.R

plot_vpcR Documentation

Visual Prediction Check

Description

Compute visual predicted check plot

Usage

plot_vpc(dataset, x = "TIME", y = "IPRED", sim = "SIMUL",
  obs = "OBS", type_scatter_CI = "CI", quantiles = c(5, 50, 95),
  CIpct = 5, statobs = T, group = "", ylog = T, stat_obs = F,
  loq_obs = 0, xlabel = "", ylabel = "", ymin_displayed = 0,
  filterr = "")

Arguments

dataset

Dataframe containing simulations

x

Name of x columns (Time columns most of time)

y

Name of Y columns (IPRED, DV...)

sim

Name of simulation columns (SIM, SIMUL...)

obs

Name of observation columns (to add dots)

group

Name of one or several group to split (e.g. "AGE + SEX")

ylog

Booléen, if the plot must be turned in logarithmic scale

stat_obs

Booléen, if stats of observation (q5, q50, q95) must be displayed

loq_obs

Value of loq for observation

xlabel

Name of the label for x

ylabel

Name of the label for y

ymin_displayed

Value of loq for simulations (on test, use with precaution)

id

Name of the column with ID

Value

A ggplot object (modifiable)

Author(s)

Thibaud Derippe


Peccary-PMX/Peccary documentation built on Jan. 17, 2024, 9:27 p.m.