getPkData: simulate 'PkData-class' from 'PkModel-class'

Description Usage Arguments Value Examples

View source: R/pkFunctions.R

Description

simulate PkData-class from PkModel-class

Usage

1
2
3
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

1
2
  getPkData( getExamplePkModel() , 0:5 , nSubjectsPerScheme = 3 , nSamples = 4  )
  getPkData( getExamplePkModel() , 0:5 , nSubjectsPerScheme = 7 , nSamples = 1  ) 

microsamplingDesign documentation built on Oct. 13, 2021, 5:10 p.m.