individual_plots: Individual prediction plots.

Description Usage Arguments Details Value Examples

Description

Plots individual observed vs predicted values as a diagnostic tool for pk/pd modeling.

Usage

1
2
individual_plots(df, filename, ID = ID, TIME = TIME, DV = DV,
  PRED = PRED)

Arguments

df

Data frame containing ID, height, the time weight and height were collected, sex, and eighter birth date or age in months.

filename

Name of file to save pdf output.

ID

Column name for unique individual identifier.

TIME

Column name for datetime or time when concentration values were collected.

DV

Column name for observed concentration values.

PRED

Column name for predicted concentration values.

Details

If any dataframe input column has a different name, define that columns name in the input parameters (See Examples). See http://r4ds.had.co.nz chapters 11.4, 11.5 and 16 for creating date or datetime R objects.

Value

A pdf containing observed vs predicted and time vs observed and predicted plots for each ID. The pdf will be saved as 'filename' in the working directory.

Examples

1
2
individual_plots(pred_example, "pred_example_plots.pdf")
# pred_example_plots.pdf should now be in your working directory

jadonwagstaff/pkpd documentation built on May 15, 2019, 1:40 p.m.