NMcreateMatLines function

Create text lines for OMEGA and SIGMA Nonmem sections

Create text lines for OMEGA and SIGMA Nonmem sections

NMcreateMatLines(omegas, as.one.block = FALSE, fix = TRUE, type)

Arguments

  • omegas: A data.table with at least i, j and value columns. See NMdata::NMreadExt and the pars element returned by that function. Must at least have columns i, j, value, iblock, blocksize, FIX.
  • as.one.block: If TRUE, all values are printed as one block. If FALSE (default), matrix will be separeted into blocks based on position non-zero off-diagonal values. Generally speaking, for OMEGA matrices (var-cov matrices for ETAs), this should be FALSE, and for variance-covariance matrices (like THETAP), this should be TRUE.
  • fix: Include FIX for all lines? If not, none will be fixed. Currently, there is no support for keeping
  • type: The matrix type. OMEGA or SIGMA - case in-sensitive. Will be used to print say $OMEGA in front of each line.

Returns

Character vector

  • Maintainer: Philip Delff
  • License: MIT + file LICENSE
  • Last published: 2025-03-13