Learn R Programming

microsamplingDesign (version 1.0.8)

getPkData: simulate PkData-class from PkModel-class

Description

simulate PkData-class from PkModel-class

Usage

getPkData(pkModel, timePoints, nSubjectsPerScheme, nSamples,
  errorCorrelationMatrixIntime = diag(1, length(timePoints)),
  nCores = 1, dirIntermediateOutput = NULL)

Arguments

pkModel

an object of PkModel-class

timePoints

numeric vector of time points

nSubjectsPerScheme

numeric constant, number of subjects per dataset on which a sampling scheme can be applied

nSamples

number of datasets to sample

errorCorrelationMatrixIntime

the correlation between additive error terms within a subject, by default no correlation

nCores

number of cores used for parallel computing, defaults to 1 (remark no random numbers are generated in parallel)

dirIntermediateOutput

directory to write intermediate output to for debugging, defaults to NULL, when no intermediate output is written down

Value

PkData-class object

Examples

Run this code
# NOT RUN {
  getPkData( getExamplePkModel() , 0:5 , nSubjectsPerScheme = 3 , nSamples = 4  )
  getPkData( getExamplePkModel() , 0:5 , nSubjectsPerScheme = 7 , nSamples = 1  ) 
# }

Run the code above in your browser using DataLab