Add IIV from vcov-Matrix to GPF

This function is handy to generate a GPF manually

addIIVCov_toGPF(iivCOV, gpf)

Arguments

iivCOV

data.frame(PARAMETER, iiv_covmatrix...) lower triangle of Variance covariance matrix of random effects. First column needs to be PARAMETER denoting the parameter names. Other column names are not mandatory

gpf

An GPF()

Value

gpf with IIV values filled into the excel sheet

Author

Daniel Lill (daniel.lill@intiquan.com)

Examples

if (FALSE) {
gpf <- load_GPF(system.file("examples/GPFExamples/xls4_2cpt_linearAbs.xlsx", package = "IQRtools"))
iivCOV <- data.table::data.table(PARAMETER = c("kabs", "CL", "Vc"),
                                 kabs      = c( 12   ,  3  ,  4) ,
                                 V2        = c( NA   ,  4  ,  0) ,
                                 V3        = c( NA   , NA  ,  1) )
addIIVCov_toGPF(iivCOV, gpf)
}