covload.Rd
Load the covariance matrix from a nonmem .cov output file. Either the covariance matrix of all THETA parameters (default) or the covariance matrix of all parameters, THETA, OMEGA and SIGMA.
For cov-files with multiple table results either only the last table result is loaded
(last.table.only=TRUE, default) or all table results are loaded (last.table.only=FALSE).
The result is then a named list of covariance matrix's,
LastTable
is the last table in the cov-files.
covload(
model,
use.model.path = TRUE,
last.table.only = TRUE,
theta.only = TRUE
)
name of the cov file with or without the .cov extension. model may include full or relative path to the cov file. See examples.
Load file from a global defined model library (TRUE=default).
If so will look for a global character vector named model.path
Include only the last table result for cov files with multiple table results
return covariance matrix of theta's only (default)
The covariance matrix or a named list of covariance matrix's
##### Load the .cov file "run001.cov"
# 1) Get path to the example file included in nonmem2R package
file1 <- system.file("extdata", "run001.cov", package = "nonmem2R")
# 2) Load the file using the covload function
covload(file1)
#> THETA1 THETA2 THETA3 THETA4 THETA5
#> THETA1 3.271800000 12.18160000 1.71386e-01 -0.71441400 5.70208e-04
#> THETA2 12.181600000 113.66800000 -2.93283e+01 -14.16570000 9.07274e-03
#> THETA3 0.171386000 -29.32830000 4.08913e+01 13.67860000 -1.63998e-02
#> THETA4 -0.714414000 -14.16570000 1.36786e+01 5.71695000 -6.37807e-03
#> THETA5 0.000570208 0.00907274 -1.63998e-02 -0.00637807 7.54236e-05
#> THETA6 -0.025285800 -0.38596600 1.76730e-01 0.08598690 4.00274e-05
#> THETA7 0.000000000 0.00000000 0.00000e+00 0.00000000 0.00000e+00
#> THETA8 0.204068000 2.86287000 -2.16775e-01 -0.12656500 -8.87720e-05
#> THETA9 0.573920000 1.87509000 -6.47747e-02 -0.10953000 6.87316e-04
#> THETA10 0.871734000 2.45532000 1.91022e+00 1.13310000 -4.49869e-03
#> THETA11 0.412888000 1.14034000 -2.41144e-04 -0.02460240 -2.78597e-05
#> THETA12 -0.006590990 -0.02048910 -1.22051e-03 0.00116964 3.96910e-05
#> THETA13 -0.049840300 -0.31736700 3.61999e-01 0.15649000 -2.14976e-04
#> THETA14 0.107154000 0.08831230 1.23280e-01 -0.00135461 1.53982e-04
#> THETA15 0.111416000 1.33295000 -4.28924e-01 -0.15020900 -3.27957e-04
#> THETA6 THETA7 THETA8 THETA9 THETA10 THETA11
#> THETA1 -2.52858e-02 0 0.204068000 0.573920000 0.87173400 4.12888e-01
#> THETA2 -3.85966e-01 0 2.862870000 1.875090000 2.45532000 1.14034e+00
#> THETA3 1.76730e-01 0 -0.216775000 -0.064774700 1.91022000 -2.41144e-04
#> THETA4 8.59869e-02 0 -0.126565000 -0.109530000 1.13310000 -2.46024e-02
#> THETA5 4.00274e-05 0 -0.000088772 0.000687316 -0.00449869 -2.78597e-05
#> THETA6 5.08985e-03 0 -0.003537590 -0.003676100 0.07745190 3.86779e-03
#> THETA7 0.00000e+00 0 0.000000000 0.000000000 0.00000000 0.00000e+00
#> THETA8 -3.53759e-03 0 0.336466000 0.055351200 0.38287300 4.93594e-02
#> THETA9 -3.67610e-03 0 0.055351200 0.167283000 0.12323700 6.95153e-02
#> THETA10 7.74519e-02 0 0.382873000 0.123237000 5.06202000 4.57226e-01
#> THETA11 3.86779e-03 0 0.049359400 0.069515300 0.45722600 1.51394e-01
#> THETA12 1.26921e-04 0 -0.000392547 -0.001046980 -0.00453907 -9.76516e-04
#> THETA13 6.36865e-03 0 0.004298370 -0.019355700 0.14978000 8.63908e-03
#> THETA14 -3.33821e-04 0 -0.007157150 0.027383900 0.00713552 2.89934e-02
#> THETA15 -4.26019e-03 0 0.034704400 0.000665549 0.01678340 1.45399e-02
#> THETA12 THETA13 THETA14 THETA15
#> THETA1 -6.59099e-03 -0.049840300 0.107154000 0.111416000
#> THETA2 -2.04891e-02 -0.317367000 0.088312300 1.332950000
#> THETA3 -1.22051e-03 0.361999000 0.123280000 -0.428924000
#> THETA4 1.16964e-03 0.156490000 -0.001354610 -0.150209000
#> THETA5 3.96910e-05 -0.000214976 0.000153982 -0.000327957
#> THETA6 1.26921e-04 0.006368650 -0.000333821 -0.004260190
#> THETA7 0.00000e+00 0.000000000 0.000000000 0.000000000
#> THETA8 -3.92547e-04 0.004298370 -0.007157150 0.034704400
#> THETA9 -1.04698e-03 -0.019355700 0.027383900 0.000665549
#> THETA10 -4.53907e-03 0.149780000 0.007135520 0.016783400
#> THETA11 -9.76516e-04 0.008639080 0.028993400 0.014539900
#> THETA12 5.52064e-05 0.000168329 -0.000145452 -0.000265708
#> THETA13 1.68329e-04 0.026901500 0.000378609 0.000223963
#> THETA14 -1.45452e-04 0.000378609 0.025744300 -0.005601980
#> THETA15 -2.65708e-04 0.000223963 -0.005601980 0.035673600