PKdata: Data input

Description Usage Arguments Details Author(s) Examples

View source: R/PKdata.R

Description

This function is to read data, match default naming system to data variables, and setup global variables.

Usage

1
PKdata(data, match.term=NULL)

Arguments

data

a data frame to analyze.

match.term

a list. It matches the package metrics to the variable names in the data.

Details

Please see vignettes for details.

Author(s)

Xiaoyong Sun

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# setup configuration
general.list <- list(save.format="bmp", width = 480, height = 480, package=2)
hist.list <- list(type=c("count"), layout=c(1,1), ind.layout=c(5,5))
scatter.list <- list(span=0.25, type=c("p", "smooth"), layout=c(1,1), ind.layout=c(5,5))

var.name <- list(ID="ID", DV="CONC", TIME="TIME", PRED="PRED", RES="RES",
WRES="WRES",IPRE="IPRE", IDV=c("CLCR", "WT"), COV=c("WT", "AGE"),
ETA=c("ETA1", "ETA2"), PARA=c("CL", "V"))

data(pdata)
# PKdata(data=pdata, match.term=var.name)

# PKconfig(general.list, hist.list, scatter.list)
# PKfigure(pdata, 1)
# PKshow()
# PKclean()

Example output

Loading required package: lattice
Loading required package: ggplot2

PKreport documentation built on May 2, 2019, 10:15 a.m.