Description Usage Arguments Details Value Examples
Plots individual observed vs predicted values as a diagnostic tool for pk/pd modeling.
1 2 | individual_plots(df, filename, ID = ID, TIME = TIME, DV = DV,
PRED = PRED)
|
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. |
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.
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.
1 2 | individual_plots(pred_example, "pred_example_plots.pdf")
# pred_example_plots.pdf should now be in your working directory
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.