Learn R Programming

PKreport (version 1.5)

PKdata: Data input

Description

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

Usage

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.

Examples

Run this code
# 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()

Run the code above in your browser using DataLab